Boost logo

Boost Users :

Subject: Re: [Boost-users] String serialization
From: Robert Bielik (robert.bielik_at_[hidden])
Date: 2011-05-09 16:33:41


Robert Bielik skrev 2011-05-09 19:14:
> but I'd like:
> <myString>The string...</myString>
>
> the serialization implementation of std::string is a menace to decipher...

Oki! Managed to fix it by implementing operator >> on the non-STL string, and declaring:

BOOST_CLASS_IMPLEMENTATION(non-STL-String, boost::serialization::primitive_type)

/Rob


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