Boost Users :
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-07-14 01:18:36
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
I'll add a comment to where the STATIC_ASSERT traps so that one will have an
explanation when its needed.
Ivan Rachev wrote:
> Robert Ramey wrote:
>> How did the compile fail?
>> Robert Ramey
>>> #include <boost/serialization/tracking.hpp>
>>> 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?
> cpp files contains this:
> #include <boost/serialization/tracking.hpp>
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net