Boost logo

Boost Users :

Subject: Re: [Boost-users] Different behavior of boost::serialization of stringson text archive
From: Robert Ramey (ramey_at_[hidden])
Date: 2013-07-03 13:16:30


Andrea Ranieri wrote:
> Hi all,
>
>
> I'm having some issue serializing a `std::string` with
> `boost::serialization` on a `text_oarchive`. AFAICT, I have two
> identical pieces of code that behaves differently in two different
> programs.
>
>
> This is the program that I believe is behaving correctly:
>
>
> #include <iostream>
> #include <string>
> #include <sstream>
>
>
...

try using

#include <boost/serialization/string>

Robert Ramey



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