operator double() surprise in cxx

Benoît Dejean bnetNOSPAM at ifrance.com
Fri Apr 30 01:54:47 EDT 2004


Le Thu, 29 Apr 2004 21:35:51 -0500, John Hunter a écrit :

> 
> I am using pycxx 5.2.2 to generate some extension code.  I want to
> extract some doubles from some python sequences
> 
> When I do
> 
>   double l( Py::Float(rect[0]) ); 
>   double b( Py::Float(rect[1]) ); 

everything that looks/tastes/sounds like a function declaration is (even
with parameters.




More information about the Python-list mailing list