
Jared McIntyre wrote:
I've continue to play around with this for a few days. The problem revolves around std::wstring. I can serialize just about anything, with the exception of a std::wstring, using the library. Am I required to use the wide version of the archives to do std::wstring? If so, is there some mechanism by which a compiler error can be triggered if you try to use a std::wstring with a non wide version of an archive?
No, note that the test_simple_class includes serialization of a wstring object and that it seems to work with all archive types Are you including: include <boost/serialization/string.hpp> in your code?
As a side note, I've tried to incorporate the wide version of the library and use that, but I'm running into a different batch of link errors:
Note that there are TWO serialization libraries. libboost_serialization includes all basic code for serialization as well as precompiled class for character mode i/o. libboost_wserialization includes precompiled classes for wide character i/o. This was done this way in order to a) simplify thngs for platforms which don't implement wide character i/o b) speed up things for those who don't use wide character i/o So in addition to linking with libboost_serialization.lib, link with libboost_wserialization.lib as well Robert Ramey