|
Boost : |
Subject: Re: [boost] [boost.Serialization V1.42.0] Question aboutBOOST_SERIALIZATION_SPLIT_FREE and non-public members
From: Robert Ramey (ramey_at_[hidden])
Date: 2010-08-06 18:40:00
gmkdroid wrote:
> Hello,
>
> I'm trying to add Boost serialization to a class which has private
> data members. I'm using the "non-intrusive" free save/load split
> method. I've added "friend class boost::serialization::access;" to
> my class, but I still receive a "cannot access private member..."
> compiler error. How can I give the load/save functions friend access
> to my class?
I'm not aware of any problem in this area. If you want to make a
small example, we'll take a look at it.
Robert Ramey
>
> I'm using Visual Studio 2008 with Boost Version 1.42.0.
>
> Thanks,
>
> Glen
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk