Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2006-09-06 15:08:18


Nachrichtall archives are meant to work alike.

binary_w?archive has not been maintained. It may or may not work. It
really has no reason for being as far as I can tell. The problem is that
the wide characters can included -1 which is confused with EOF. When I
discovered this, it didn't see a way to work around it and didn't really
understand how one could do binary i/o with wide character archives. I've
just assumed I've missed something dumb and moved on.

For practical purposes, just use binary_i/oarchive.

Robert Ramey
"Oliver Mutz" <omutz_at_[hidden]> wrote in message
news:008901c6d1cb$b896e1a0$150aa8c0_at_int.isdcad.de...
In my application I'm trying to serialize data alternatively to
xml_wiarchive or binary_wiarchive.

Writing and reading XML works without any problems.
Binary writing seems to work too, but reading the file throws an exception
with exception_code 'unregistered_class'.

What I do is reading the XML data, writing binary and reading binary back
in.

I thought there should be no difference which kind of archive I use.
Am I missing a point?

***
Nope, it is a goal that all archives work alike.

I would be thankful for any hint.

I know that it is hard to guess where the problem might be without seeing
any code, but I by now I was not able to create some simple example which
shows the same behaviour.

I'm using Windows XP (SP2) with MSVC 8.0.

Thanks.

Oliver

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net