[C++-sig] exporting function objects

John Reid j.reid at mail.cryst.bbk.ac.uk
Fri Nov 23 09:50:31 CET 2007


Gennadiy Rozental wrote:
> This one I figured out. But it seems clumsy. I would much prefer
> class_<A>("A")
>   .def( self() )

How do you think it is clumsy? To someone who knows about how __call__ 
works in python its intent is more obvious.




More information about the Cplusplus-sig mailing list