Boost logo

Boost :

Subject: Re: [boost] Question about exposing template class to python using boost::python
From: Jeffrey Lee Hellrung, Jr. (jhellrung_at_[hidden])
Date: 2010-06-23 10:11:21

On 6/23/2010 4:37 AM, David Abrahams 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.

Without being familiar with Boost.Python, might the "over and over" be
"generateable" automatically with Boost.Preprocessor...?

- Jeff

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