$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] [boost.Serialization V1.42.0] Question about BOOST_SERIALIZATION_SPLIT_FREE and non-public members
From: gmkdroid (gmkdroid_at_[hidden])
Date: 2010-08-05 16:11:21
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 using Visual Studio 2008 with Boost Version 1.42.0.
Thanks,
Glen