Boost logo

Boost Users :

From: Robert Ramey (ramey_at_[hidden])
Date: 2007-05-09 11:14:13


Matthias Troyer wrote:
> On May 9, 2007, at 8:40 AM, Ng Pan wrote:
>
>>
>> The above problem doesn't exist for another pointer m_pD1.
>> Both of them are pointer. The difference is that m_pnInt is integer
>> (basic object) and m_pD1 is user-defined class.
>>
>> I wonder what should I do to solve the mentioned problem
>> (serialization of pointer of basic object).
>
> As far as I know, serialization of pointers to primitive types (such
> as int) is not supported by the serialization library. Just serialize
> the integer directly.
>
> Matthias

pointers to primitive types can only be serialized by
including them in a "wrapper" which itself can
serialized througha pointer.

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