[C++-sig] exporting function objects
Ralf W. Grosse-Kunstleve
rwgk at yahoo.com
Fri Nov 23 05:48:31 CET 2007
I think this should work:
class_<A>("A")
.def("__call__", &A::operator())
;
Ralf
----- Original Message ----
From: Gennadiy Rozental <rogeeff at gmail.com>
To: c++-sig at python.org
Sent: Thursday, November 22, 2007 7:58:07 PM
Subject: [C++-sig] exporting function objects
What is a correct way to export class A with operator() implemented as
callable object?
Genandiy
_______________________________________________
C++-sig mailing list
C++-sig at python.org
http://mail.python.org/mailman/listinfo/c++-sig
More information about the Cplusplus-sig
mailing list