BOOST_CLASS_TRACKING compilation error : tracking_level not a class or a namespace
Hi, I want to disable tracking because of the now somewhat famous (STATIC_ASSERT compilation errors). I have a few classes within a namespace in a header file. For serialization of these, I want to disable tracking so I placed the macros: BOOST_CLASS_TRACKING(mynamespace::myClassA, boost:serialization::track_never); BOOST_CLASS_TRACKING(mynamespace::myClassB, boost:serialization::track_never); outside mynamespace. For this I am getting compilation errors saying : 'struct boost::serialiazation::tracking_levelmynamespace::myClassA::type' is not a class or a namespace. I've included the boost header files, etc. in my header file. What am I missing? All help appreciated. - Benjamin Jacob.
AMDG G, Benjamin (NSN - IN/Bangalore) wrote:
I want to disable tracking because of the now somewhat famous (STATIC_ASSERT compilation errors).
I have a few classes within a namespace in a header file. For serialization of these, I want to disable tracking so I placed the macros:
BOOST_CLASS_TRACKING(mynamespace::myClassA, boost:serialization::track_never);
BOOST_CLASS_TRACKING(mynamespace::myClassB, boost:serialization::track_never);
<snip>
What am I missing?
You're missing colon. boost:serialization::track_never should be boost::serialization::track_never In Christ, Steven Watanabe
Damnn! That was silly. Thanks for that. Unfortunately it doesn't end there. Now with BOOST_CLASS_TRACKING(mynamespace::myClassA, boost::serialization::track_never); BOOST_CLASS_TRACKING(mynamespace::myClassB, boost::serialization::track_never); I am still getting those invalid application of 'sizeof' to incomplete type 'boost::STATIC_ASSERTION_FAILURE<false>' errors. Do I have to use anything else for this? Regards, - Ben
-----Original Message-----
From: boost-users-bounces@lists.boost.org [mailto:boost-users-
bounces@lists.boost.org] On Behalf Of ext Steven Watanabe
Sent: 16 July, 2009 10:26 PM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] BOOST_CLASS_TRACKING compilation error :
tracking_level not a class or a namespace
AMDG
G, Benjamin (NSN - IN/Bangalore) wrote:
I want to disable tracking because of the now somewhat famous
(STATIC_ASSERT compilation errors).
I have a few classes within a namespace in a header file. For
serialization of these, I want to disable tracking so I placed the
macros:
BOOST_CLASS_TRACKING(mynamespace::myClassA,
boost:serialization::track_never);
BOOST_CLASS_TRACKING(mynamespace::myClassB,
boost:serialization::track_never);
<snip>
What am I missing?
You're missing colon. boost:serialization::track_never
should be boost::serialization::track_never
In Christ,
Steven Watanabe
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
participants (2)
-
G, Benjamin (NSN - IN/Bangalore)
-
Steven Watanabe