[C++-sig] exporting function objects

Gennadiy Rozental rogeeff at gmail.com
Fri Nov 23 06:19:36 CET 2007


"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> wrote in message 
news:467192.53158.qm at web31115.mail.mud.yahoo.com...
>I think this should work:
>
> class_<A>("A")
>  .def("__call__", &A::operator())
> ;

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

Gennadiy 






More information about the Cplusplus-sig mailing list