Ahhh yes. Basically the STATIC_ASSERT is preventing you from setting tracking for a primitive type. This almost HAS to be an error. Doing this will effect serialization of all char's in your program which is almost certainly what you don't want to do. If you want to do this, You'll have to wrap a char in your own type so its not a primitive anymore. Then it will pass. I'll add a comment to where the STATIC_ASSERT traps so that one will have an explanation when its needed. Robert Ramey Ivan Rachev wrote:
Robert Ramey wrote:
How did the compile fail?
Robert Ramey
#include
BOOST_CLASS_TRACKING(char, boost::serialization::track_selectivly) I guess I need to change the default "implementation_level" for char. What other things do I need to change so as to make a fundamental type trackable?
Thanks, Ivan
cpp files contains this:
#include
BOOST_CLASS_TRACKING(char, boost::serialization::track_selectivly) When compiling I get this: error C2027: use of undefined type 'boost::STATIC_ASSERTION_FAILURE<x>' because I believe BOOST_STATIC_ASSERT inside BOOST_CLASS_TRACKING fails.
I use boost 1.32
Ivan