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

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

[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