Boost logo

Boost :

Subject: Re: [boost] Question about exposing template class to python using boost::python
From: Yongning Zhu (yongningbrg_at_[hidden])
Date: 2010-06-23 13:18:45

Thanks for everyone's reply.

I am not quite sure about what this mean, nor boost.preprocessor. I
wrote a template function for each class I want to templatize, and
call that function for each specialized object class_<>, and it seems
it is working.


On Wed, Jun 23, 2010 at 4:37 AM, David Abrahams <dave_at_[hidden]> wrote:
> At Tue, 22 Jun 2010 17:06:26 -0700,
> Yongning Zhu wrote:
>> Hi,
>> I implemented a
>> template<class T, int d> VECTOR;
>> Now I can expose specialized class like VECTOR<int,2> to python, but I
>> want to expose more specializations without copying a whole set. What
>> shall I do?
> Write a template that contains the code to expose one specialization,
> then use that over and over.
> --
> Dave Abrahams
> BoostPro Computing
> _______________________________________________
> Unsubscribe & other changes:

Boost list run by bdawes at, gregod at, cpdaniel at, john at