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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- View this message in context: http://old.nabble.com/Problem-with-Boost-Serialization-tp27743377p27783591.h... Sent from the Boost - Users mailing list archive at Nabble.com.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- View this message in context: http://old.nabble.com/Problem-with-Boost-Serialization-tp27743377p27798823.h... Sent from the Boost - Users mailing list archive at Nabble.com.