
23 Jun
2010
23 Jun
'10
2:11 p.m.
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