I have tried providing getters of class A for my non-member serialize() function` since accessing from members is private.
template
Just for additional info: In order to get the first solution from sehe working:
You need a forward decleration of the friends method like this:
// Boost
#include
class ClassB;
namespace boost{
namespace serialization {
template void serialize(Ar&,ClassB&,const unsigned);
}
}
class ClassB: public ClassA{
private:
template friend void boost::serialization::serialize(Ar&,ClassA&,const unsigned);
public:
ClassA();
virtual ~ClassA();
};
Took me a while to get it working.
Cheers