[C++-sig] Py++ and inner template classes

Pertti Kellomäki pertti.kellomaki at tut.fi
Tue Apr 29 14:35:44 CEST 2008

Roman Yakovenko wrote:
> This should help:
> http://language-binding.net/pyplusplus/documentation/how_to/templates.html
> Basically you have to instantiate that class, sizeof operator does this.

One more thing. Is it possible to do this non-invasively? I tried
to play around, but the only way I was able to get the inner template
class exposed was to put the sizeof() somewhere in the same header file
as the original class. I can do it if necessary, but I would prefer
not to clutter the original header file if possible.

More information about the Cplusplus-sig mailing list