
5 Aug
2010
5 Aug
'10
8:11 p.m.
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