2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

taking care of const_argument test failures (see http://thread.gmane.org/gmane.comp.python.c++/7221)

[SVN r25848]
This commit is contained in:
Aleksey Gurtovoy
2004-10-24 07:28:34 +00:00
parent 11daf8dde8
commit fa8cffb3a2

View File

@@ -9,22 +9,28 @@
* compiler's bug.
*/
#include <boost/python.hpp>
#include <boost/type_traits/broken_compiler_spec.hpp>
using namespace boost::python;
bool accept_const_arg_noproto( const object)
BOOST_TT_BROKEN_COMPILER_SPEC( object )
#if !BOOST_WORKAROUND(BOOST_MSVC, == 1200)
bool accept_const_arg_noproto( const object )
{
return true;
}
#endif
bool accept_const_arg_with_proto( object );
bool accept_const_arg_with_proto( const object )
{
return true;
}
bool accept_const_arg_with_proto( object);
bool accept_const_arg_with_proto( const object)
BOOST_PYTHON_MODULE( const_argument_ext )
{
return true;
#if !BOOST_WORKAROUND(BOOST_MSVC, == 1200)
def( "accept_const_arg_noproto", accept_const_arg_noproto );
#endif
def( "accept_const_arg_with_proto", accept_const_arg_with_proto );
}
BOOST_PYTHON_MODULE( const_argument_ext)
{
def( "accept_const_arg_noproto", accept_const_arg_noproto);
def( "accept_const_arg_with_proto", accept_const_arg_with_proto);
}