
20 Aug
2003
20 Aug
'03
7:30 p.m.
On Thu, Aug 21, 2003 at 02:25:24AM +0200, cavok@filibusta.crema.unimi.it wrote:
[Non-text portions of this message have been removed]
damn... as if it was not text... here it is. #include <boost/python.hpp> #include <iostream> using namespace boost::python; struct A { void f(int) { cout << "int" << endl; } void f(double) { cout << "double" << endl; } }; BOOST_PYTHON_MODULE(test) { void (A::* fx1)(int) = &A::f; void (A::* fx2)(double) = &A::f; class_<A>("A") .def("f", fx1) .def("f", fx2) ; } -----[ Domenico Andreoli, aka cavok --[ http://filibusta.crema.unimi.it/~cavok/gpgkey.asc ---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50