structs cannot include member functions.
Try non-intrunsive serializaition. Or make it a class
Robert Ramey
"sui tam" wrote in message news:20051201194546.78588.qmail@web36310.mail.mud.yahoo.com...
I have a class that is using a C struct, when I use the serialization code:
typdef struct A
{
template <class Archive>
void serialize( Archive & ar, )
{
ar & a1;
ar & a2;
}
type1 a1;
type2 a2;
}
I get error A.h(59): error: this declaration may not have extern "C" linkage
template<class Archive>
How can I archive this C structure which the class referenced?
------------------------------------------------------------------------------
Yahoo! Personals
Single? There's someone we'd like you to meet.
Lots of someones, actually. Try Yahoo! Personals
------------------------------------------------------------------------------
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users