[Boost-bugs] [ boost-Support Requests-1628807 ] serialization and namespaces incompatability

Support Requests item #1628807, was opened at 2007-01-05 15:30 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1628807&group_id=7586 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Miguel (gorogoro) Assigned to: Nobody/Anonymous (nobody) Summary: serialization and namespaces incompatability Initial Comment: Hi! I'm trying to use boost serialization library in my project. I've lanched jambuild with no problems and I have the library working. But there is a stress using namespace. My classes are all inside a namespace and when I try to use: BOOST_CLASS_TRACKING(A, boost::serialization::track_never) where A is: namespace FlowEngine { class A { public: template<class Archive> void serialize(Archive & ar, const unsigned int version) { ar & dumbf; ar & dumbi; } int dumbi; float dumbf; A():dumbi(12), dumbf(69.69f){ } A(int dumb1, float dumb2) : dumbi(dumb1), dumbf(dumb2){ } }; BOOST_CLASS_TRACKING(A, boost::serialization::track_never) main.... } ////////////////////////////// I get this compile errors: error C2888: 'boost::serialization::tracking_level<FlowEngine::A>' : symbol cannot be defined within namespace 'FlowEngine' I'm using VC-80 setup. Is there a way to turn around the problem?? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1628807&group_id=7586 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs
participants (1)
-
SourceForge.net