|
Boost Users : |
From: Marcin Kalicinski (kalita_at_[hidden])
Date: 2007-07-21 18:20:18
It's possible to expose free functions through "thin wrappers":
void f()
{
//...
}
void f_wrapper()
{
// ... some extra functionality to be done when called from Python only
f();
}
def("f", f_wrapper);
But is it possible to write "thin wrappers" for member functions (without
modifying the wrapped class)?
struct foo
{
void f();
};
// f_wrapper defined somehow somewhere
class_<foo>("foo")
.def("f", f_wrapper???)
Thanks,
Marcin
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