[C++-sig] [tutorial] Auto-Overloading example bug?

Roman Yakovenko roman.yakovenko at gmail.com
Wed Aug 30 13:29:30 CEST 2006


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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20060830/6de88e5f/attachment.htm>


More information about the Cplusplus-sig mailing list