Re: [C++-sig] Callbacks in PyBindGen

2010-05-19 Thread Gustavo Carneiro
On Tue, May 18, 2010 at 14:23, cammm wrote: > > So I've just started playing with pybindgen and having used pyobject plus > and > boost::python before I have to say, it is a breathe of fresh air. > > Simple, explicit, fast and written in python. I'm not a fan of automatic > coverage / source code

Re: [C++-sig] Callbacks in PyBindGen

2010-05-19 Thread Gustavo Carneiro
Example: http://bazaar.launchpad.net/~gjc/pybindgen/trunk/revision/766 (don't forget the previous revision 765 for a bug fix) On Wed, May 19, 2010 at 10:36, Gustavo Carneiro wrote: > > > On Tue, May 18, 2010 at 14:23, cammm wrote: >

[C++-sig] Problem with overloading between int and double

2010-05-19 Thread Thomas Daniel
I have a class with "create" methods for different types of arguments: #include class Test { public: Test() {} Test(int x) : _type(x) {} static Test create(int) { return Test(0); } static Test create(double) { return Test(1); } static Test create(const char*) { re

Re: [C++-sig] Problem with overloading between int and double

2010-05-19 Thread Jim Bosch
On 05/19/2010 06:23 PM, Thomas Daniel wrote: The python wrappers created by boost don't seem to distinguish between create(int) and create(double), although they do notice create(const char*): Any ideas what I do wrong? You aren't doing anything wrong. The problem is that the boos

Re: [C++-sig] Problem with overloading between int and double

2010-05-19 Thread Ralf W. Grosse-Kunstleve
> I admit it's not a very satisfying solution. Maybe someone else has a better > idea, > but I think fixing this in Boost.Python would require a lot of work. Troy did the work already but it isn't in the trunk. IIUC the additional price is increased extension sizes (but Troy's changes seem to g