Boost logo

Boost Users :

Subject: Re: [Boost-users] [Serialization] good practice for serialization with private default constructors
From: David Rajaratnam (daver_at_[hidden])
Date: 2014-04-04 14:59:08


On 05/04/14 03:46, Robert Ramey wrote:
>
> Note that subject is treated in the manual. I forget where. You'll
> have to
> look for it. boost/libs/serialization/doc/index.html
>
> And there are two tests which explicitly test this. see.
>
> https://github.com/boostorg/serialization/blob/develop/test/test_non_default_ctor.cpp
>

Sorry, I couldn't find the reference in the manual addressing private
default constructor good/bad practice. I am undoubtedly
misunderstanding something, but I'm not sure the part on non-default
constructors is relevant. In any case...

>
> never do ar & *x. This will evade certain code which the library
> requires. Trust
> the source luke!
>

this answers my question.

Regards,
Dave

PS. Thanks for the great library!


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