Boost logo

Boost Users :

Subject: Re: [Boost-users] Problem with Boost Serialization
From: Binh Luong (tbinhluong_at_[hidden])
Date: 2010-03-05 15:31:46


Hi,

many thanks for your help.

After using the nvp-wrapper for msg it works!
May be in the new version of boost we do not have to use the nvp-wrapper
only for the attributes of a class but also for the class itself (because
there are actually no problems with boost 1.38).

Once again thank you very much :)

Regards,
Binh

Matthias Troyer-2 wrote:
>
> Look at this line of code:
>
>> outputArchive & msg;
>
>
> Can you try making a NVP from msg? and similarly for seserializing?
>
> Matthias
>
> On 4 Mar 2010, at 18:01, Binh Luong wrote:
>
>>
>> Hi,
>>
>> sorry that i forgot the code.
>> Here you are http://codepad.org/TbPq2PWb
>>
>> Regards,
>> Binh
>>
>>
>> Matthias Troyer-2 wrote:
>>>
>>>
>>> On 4 Mar 2010, at 12:40, Binh Luong wrote:
>>>
>>>>
>>>> Hi,
>>>>
>>>> oh sorry, i was wrong in the last message. Although i changed to pass a
>>>> const pointer to the serialize function, the errors are still there ...
>>>> I have put the attribute in NVP wrappers.
>>>>
>>>> You can see the header file Mesage.h here http://codepad.org/ktpm8Aab
>>>>
>>>> Regards,
>>>> Binh
>>>>
>>>
>>> Can you post the actual code you try to compile? the code you posted did
>>> not contain any NVP wrapper around the pointer
>>>
>>> Matthias
>>>
>>> _______________________________________________
>>> Boost-users mailing list
>>> Boost-users_at_[hidden]
>>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Problem-with-Boost-Serialization-tp27743377p27783591.html
>> Sent from the Boost - Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
>

-- 
View this message in context: http://old.nabble.com/Problem-with-Boost-Serialization-tp27743377p27798823.html
Sent from the Boost - Users mailing list archive at Nabble.com.

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