[C++-sig] py++ with template member function of template class

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


Roman Yakovenko <roman.yakovenko <at> gmail.com> writes:
> > /////////////////////////////////////////////////////////////////////////
> > // test template member function in template class
> > // THIS WON'T WORK!!!!!!!!!!!!!
> > template <typename A>
> > class BFunc
> > {
> > public:
> >     template <typename T>
> >     T foo(const T& t) const;
> > };
> >
> > template <typename A> template <typename T>
> > T BFunc<A>::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/inserting_code.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