[C++-sig] exposing Template methods and classes

Sean Ross-Ross srossross at gmail.com
Fri May 25 17:18:53 CEST 2007

Is there a way that I can smartly template classes or functions  
depending on the type of python Object passed to them?

for example, say you expose a vector class and as a constructor pass  
a extra argument "dtype", like numpy, that templates the vector to  
that  type.

or any what at all that does not involve templating it on a PyObject.  
So I don't have to template every type that I could possibly want?


More information about the Cplusplus-sig mailing list