[C++-sig] pyplusplus and templates

Allen Bierbaum abierbaum at gmail.com
Thu Feb 16 22:05:59 CET 2006


Does anyone have an example of exporting a simple template class with pypluplus?

For example how would I export:

template<typename T>
class TempClass
{
public:
   void doSomething(T var)
   { x = 10; }

   T getVar()
   { return x; }

   T x;
};



Thanks,
Allen



More information about the Cplusplus-sig mailing list