Boost logo

Boost :

Subject: Re: [boost] Question about exposing template class to python using boost::python
From: David Abrahams (dave_at_[hidden])
Date: 2010-06-23 07:37:22

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

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