|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-12-01 19:16:10
structs cannot include member functions.
Try non-intrunsive serializaition. Or make it a class
Robert Ramey
"sui tam" <suitam2006_at_[hidden]> wrote in message news:20051201194546.78588.qmail_at_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_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net