Hi. I could be wrong, but it seems to me that the Boost.Python tutorials contains bug.
( http://boost.org/libs/python/doc/tutorial/doc/html/python/functions.html#python.auto_overloading
)
The compiler ( I use msvc 7.1 ) is not able to compile the code. The main reason is that it can not decide
what "f" to select. I mean, it does not know what address it should pass to "def" function. The same thing
occurs for BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS. It seems to me that it is right.
Some thoughts. I think, that in this case( auto-overloading example ) function "def"
should not take reference to function. It should be enough to pass an instance of
the constructed class. Same logic could be applied on class_::def method too.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/