
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. Thanks yong On Wed, Jun 23, 2010 at 4:37 AM, David Abrahams <dave@boostpro.com> 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 http://www.boostpro.com
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost