|
Boost Users : |
From: Robert Ramey (ramey_at_[hidden])
Date: 2005-04-22 01:27:37
what is SWIG?
the macro won't work with a template. one has to specialiae the class.
This issue is specifically discussed in the documentation.
Robert Ramey
use boost::serialization::version<class <T>>
Bo Peng wrote:
> 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