Hi guys..I've the following problem..
I have a file called A.h and a file B.h. each contains some struct like this:
(the structs inside the two classes are different)
struct Base
{
friend class access;
template <typename Archive>
void serialize(Archive& ar,const unsigned int version)
{
ar & fieldLength;
ar & fieldMD;
ar & fieldTime_Stamp;
}
public:
unsigned int fieldLength;
unsigned int fieldMD;
unsigned int fieldTime_Stamp;
virtual void f(){} //to be polymorphic the struct
};
struct Derived:public Base
{
. ...
}
So i serialize the struct in the classic manner:
....
std::ostringstream archive_stream;
boost::archive::text_oarchive archive(archive_stream);
archive.register_type(static_cast
m;" for the other...it seems a conflict in the registration class or
something like this...
Any ideas?thanks...