|
Boost Users : |
Subject: Re: [Boost-users] Overloading errors
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-05-01 01:19:18
AMDG
A B wrote:
> On Fri, Apr 17, 2009 at 5:25 PM, A B <python6009_at_[hidden]> 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
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