On Thu, Feb 3, 2011 at 12:13 PM, Hugo Parente Lima <[email protected]> wrote: > On Thursday 03 February 2011 12:54:50 Sylvain Meunier wrote: >> Hello, >> >> What is the usual way for binding method templates ? > > There's no simple way, sometimes it's possible some times not because we can't > instantiate those template methods at runtime. So you need to analyze the > semantics of the method and write some kind of code injection to do the hard > task of connect the world of compile time stuff (C++ templates) to the world > of > run time stuff (Python). > > As an example you could see our implementation of qmlRegisterType<T>[1] or > QObject::findChildren to have an idea.
I wonder if this could be made automatic by extending apiextractor to parse templates as well? or does it already parse templates and one could extend the generator? Of course, it would not work in 100% cases, but it would be nice if we could have some typesystem support for simple templates which would not require manual inject code. My two BRL cents :) -- Anderson Lizardo OpenBossa Labs - INdT Manaus - Brazil _______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
