help to serialize a template abstract class

2 views
Skip to first unread message

huage

unread,
Sep 5, 2005, 11:56:44 AM9/5/05
to BOOST Archives
here are my classes

template<class T>
class Data
{
friend class boost...
template <class Archive>
void serialize(Archive & ar, const unsigned int file_version)
{
ar & .....
}
....
T * values;
String name;
}
template<class T>
BOOST_IS_ABSTRACT(Data<T>);

template<class T>
class xmlData: public Data <T>
{
friend class boost...

template <class Archive>
void serialize(Archive & ar, const unsigned int file_version)
{
ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(Data);
// what should I code here?? Does the line above work?
}
}
//and how can I export the class Type??
template<class T>
BOOST_CLASS_EXPORT_GUID(xmlData<T>,"xmlData");

can the macros work with my template classes, i've always errors

thanks

huage

Reply all
Reply to author
Forward
0 new messages