
26 Oct
2004
26 Oct
'04
4:41 p.m.
"Russell Hind" wrote:
There seems to be a problem on win32 where if you use a stream opened in text mode for a binary archive, you get errors.
I realise you shouldn't use a binary archive with a text stream, but is there anyway to catch this at compile or run time? Otherwise you just end up with a corrupted archive?
Probably no way to find stream is text or binary. Maybe if serialization library inserts '\n' at the opening and asks for tellp() to check how many bytes are in. /Pavel