1 May
2009
1 May
'09
5:19 a.m.
AMDG A B wrote:
On Fri, Apr 17, 2009 at 5:25 PM, A B
wrote: struct X { int f(int x, double y = 4.25, char const* z = "wow"); int f(int x, bool b = true); };
<snip>
class_<X>("X", "This is X's docstring")
.def("f1", &X::f,
The compiler can't figure out which overload of X::f you mean. It must be resolved here and there is not enough information.
<snip>
g++ -fpic -shared -o test.so test.cpp -lpython2.4 -lboost_python -I/usr/include/python2.4
test.cpp: In function ‘void init_module_args_ext()’:
test.cpp:31: error: no matching function for call to ‘boost::python::class_<X>::def(const char [3], <unresolved overloaded function type>, etc.)’
In Christ, Steven Watanabe