[serialization] Can access::destroy (please) be removed?
30 Jan
2009
30 Jan
'09
8:12 a.m.
Hi, my compiler (Visual Studio 2003) gives an error in access.hpp when I try to serialize an object that has a protected destructor (see summarized compiler output below). If I comment out the call to delete in access::destroy, the compiler does no longer complain and my code seems to work. Is the destroy function (or: the delete call) really needed? Thanks!, Maarten MyClass::MyClass' : cannot access protected member declared in class 'MyClass' boost\archive\detail\iserializer.hpp(105) : see reference to function template instantiation 'void boost::serialization::access::destroy<T>(const T *)' being compiled
5766
Age (days ago)
5766
Last active (days ago)
0 comments
1 participants
participants (1)
-
Maarten Nieber