[C++-sig] py++ with template member function of template class (original) (raw)

Maik Beckmann Beckmann.Maik at googlemail.com
Fri Jan 16 18:33:52 CET 2009


Roman Yakovenko <roman.yakovenko gmail.com> writes:

> ///////////////////////////////////////////////////////////////////////// > // test template member function in template class > // THIS WON'T WORK!!!!!!!!!!!!! > template > class BFunc > { > public: > template > T foo(const T& t) const; > }; > > template template > T BFunc::foo(const T& t) const { return t + 1; }; >

Unfortunately GCC-XML doesn't dump the information. I am also not aware of any workaround . You will have to create the code by yourself. Py++ allows you to integrate your code easily( http://language-binding.net/pyplusplus/documentation/insertingcode.html )

In this mail http://www.mail-archive.com/gccxml@gccxml.org/msg00316.html Brad King, author of gccxml, confirms that this isn't implemented.

I hope as gccxml gets more and more popular (i.e. the CERN started using it to get C++ reflection) someone will continue Brads good work. He stated in the mail that he is willing to help get people started.

-- Maik



More information about the Cplusplus-sig mailing list