Boost logo

Boost Users :

From: Bo Peng (ben.bob_at_[hidden])
Date: 2005-04-22 01:13:02


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


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