[C++-sig] small error within implicitly_convertible example

Roman Yakovenko roman.yakovenko at gmail.com
Sun Aug 21 08:33:41 CEST 2005


Hi. There is an error, while compiling example:
http://boost.org/libs/python/doc/v2/implicit.html.

I've got errors on compilers: gcc 3.3 ( from debian 3.1 ) and on msvc
7.1 ( win XP ).

The error caused by the fact that X::operator int() defined as non const.
Adding const to the definition fix the problem.

Roman



More information about the Cplusplus-sig mailing list