|
Boost Users : |
From: cavok_at_[hidden]
Date: 2003-08-20 20:30:57
On Thu, Aug 21, 2003 at 02:25:24AM +0200, cavok_at_[hidden] 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net