[serialization] Can binary-objects be trackable ?

Hello everyone. I found a description pasted below in boost/serialization/binary_object.hpp. Does this description means that binary-objects can't track ? [ in binary_object.hpp ] // don't track binary objects - usually they will be created on the stack // and tracking algorithm (which uses the object address) might get // confused. note that these address will likely be members of some // other structure which itself is tracked, so as a practical matter // suppressing tracking shouldn't cause any redundancy. BOOST_CLASS_TRACKING(binary_object, boost::serialization::track_never) #endif // BOOST_SERIALIZATION_BINARY_OBJECT_HPP

No. But a structure could contain data which is serialized with a binary_object. This would amount to the same thing in most applications. Robert Ramey Youhei Murakami wrote:
Hello everyone. I found a description pasted below in boost/serialization/binary_object.hpp. Does this description means that binary-objects can't track ?
[ in binary_object.hpp ] // don't track binary objects - usually they will be created on the stack // and tracking algorithm (which uses the object address) might get // confused. note that these address will likely be members of some // other structure which itself is tracked, so as a practical matter // suppressing tracking shouldn't cause any redundancy.
BOOST_CLASS_TRACKING(binary_object, boost::serialization::track_never)
#endif // BOOST_SERIALIZATION_BINARY_OBJECT_HPP
participants (2)
-
Robert Ramey
-
Youhei Murakami