[C++-sig] [boost.python] Interoperability with boost.bind

Markus Schöpflin markus.schoepflin at comsoft.de
Fri Jul 1 16:41:23 CEST 2005

Is boost.python compatible with boost.bind (see example below)? If yes, 
what am I doing wrong? The compiler used is g++ 3.2.3, boost version is 1.32.


int foo(int bar) { return bar; }
def("foo", foo); // compiles ok
def("foo", boost::bind(foo, _1)); // gives error

The error message boils down to:

boost/python/make_function.hpp:103: error: no matching function for call to 
`get_signature(boost::_bi::bind_t<int, int (*)(int), 
boost::_bi::list1<boost::arg<1> > >&)'

TIA, Markus

More information about the Cplusplus-sig mailing list