|
Boost : |
From: David Abrahams (abrahams_at_[hidden])
Date: 2001-04-10 13:43:02
You just need to expose each instantiation as an ordinary class.
In fact, you can do this:
typedef my_template<double> my_template_double;
typedef my_template<std::complex<double> > my_template_complex_double;
Now expose my_template_double and my_template_complex_double as though they
were ordinary classes. You could even write a function template to do it so
you don't have to repeat the code. ;-)
-Dave
----- Original Message -----
From: "Jacek Generowicz" <jmg_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, April 10, 2001 2:32 PM
Subject: [boost] Python module - templates.
> Hello,
>
> I am trying to expose a C++ template class to python, using the Boost
> Python library. The class will only ever be instantiated with template
> arguments double and std::complex<double>.
>
> Where can I find information on how to go about this ?
>
> Could anyone give me any hints or advice ?
>
> Thanks,
>
> Jacek
>
> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk