[C++-sig] Py++ and inner template classes
Roman Yakovenko
roman.yakovenko at gmail.com
Tue Apr 29 12:19:52 CEST 2008
On Tue, Apr 29, 2008 at 10:56 AM, Pertti Kellomäki
<pertti.kellomaki at tut.fi> wrote:
> Roman Yakovenko wrote:
>
> > I just created new test case and everything works fine:
> > http://pygccxml.svn.sourceforge.net/viewvc/pygccxml?view=rev&revision=1315
> >
>
> If you remove the body of function f in the test case, i.e.
> instead of
>
> Inner_int f() { return Inner_int(23); }
>
> just have
>
> Inner_int f();
>
> then the exposing code is not generated. Should a file a bug
> in Bugzilla for this?
No :-)
> Is there some short term workaround to force the exposing code to be generated?
This should help:
http://language-binding.net/pyplusplus/documentation/how_to/templates.html
Basically you have to instantiate that class, sizeof operator does this.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
More information about the Cplusplus-sig
mailing list