22 Apr
2005
22 Apr
'05
6:13 a.m.
Dear list, I use boost::serialization to serialize my classes. They are template classes that are instantiated and wrapped by SWIG. Everything works fine until I decide to use BOOST_CLASS_VERSION to set version for the class. The first parameter of BOOST_CLASS_VERSION(class, version) is a class but my template will only be instantiated by SWIG. The syntax does not allow me to do something like template<class T> BOOST_CLASS_VERSION(class<T>, version) or BOOST_CLASS_VERSION( template<class T>class <T>, version). What should I do? Many thanks in advance. Bo