
Sorry, just noticed that in the last version of the library this has been fixed. "Mikhail Kubzin" <mikhail.kubzin@legion.biz> wrote in message news:dob8uo$6h1$1@sea.gmane.org...
I have got one more question. If I were to use class A in some .cpp file, where I am not interested in serialization, do I still need to include serialization/archive/.. headers in that .cpp? Is it posssible to avoid that?
----------------------------------------------------------------------- A.h
#include <boost/serialization/version.hpp> #include <boost/serialization/export.hpp> namespace boost { namespace serialization { class access; } } class A { }; BOOST_CLASS_VERSION(A, 1) BOOST_CLASS_EXPORT(A) ----------------------------------------------------------------------- A.cpp
#include <boost/archive/polymorphic_archive.hpp> #include "A.h" <<implementation> ----------------------------------------------------------------------- B.cpp
<<<<===== #include <boost/archive/polymorphic_archive.hpp>????
#include "A.h" void B::foo() { A a; a.DoSomething(); } ------------------------------------------------------------------------
Thank you very much in advance!
Mikhail
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost