30 Jul
2014
30 Jul
'14
1:48 p.m.
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.