Boost logo

Boost Users :

From: Christian Henning (chhenning_at_[hidden])
Date: 2007-02-07 16:46:33


It needs to be symmetrical. Meaning when you serialize a pointer use a
pointer for the deserialization.

Christian

On 2/7/07, Aljaz <aljaz.fajmut_at_[hidden]> wrote:
> Hello..
>
> Do I have to use pointer when restoring derived class?
> For instance:
>
> std::istringstream archive_stream( archive_data );
> boost::archive::binary_iarchive archive( archive_stream );
> client_request_base* base;
> archive & base;
>
> Or can I do:
>
> client_request_base base;
> archive & base;
>
> Instead?
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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