|
Boost Users : |
Subject: Re: [Boost-users] [serialization] Please help me solve this compile error.
From: Brian Wood (woodbrian77_at_[hidden])
Date: 2014-07-30 18:36:55
Bjorn Reese writes:
On 07/30/2014 04:01 AM, Paul Blampspied wrote:
>> boost::archive::binary_
oarchive oa(file);
>> oa << PersistentManagedArray<int>(size, capacity, ints);
//This line does not compile !
>
> The stream operator in Boost.Serialization does not take temporary
> objects, so create the PersistentManagedArray<T> object on a separate
> line, and then pass it to the stream.
The C++ Middleware Writer <http://webEbenezer.net> supports temporary
objects. Here's an
example:
front_messages_middle::Marshal(sendbuf,
cmw::marshalling_integer(::strtol(argv[1],0,10)));
It doesn't support PersistentManagedArray, but I'm willing to
consider adding support for that. More info here -
http://webEbenezer.net/about.html
-- Brian Ebenezer Enterprises http://webEbenezer.net
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