2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-20 16:52:15 +00:00

merge fixes from the main trunk

[SVN r25849]
This commit is contained in:
Aleksey Gurtovoy
2004-10-24 07:32:42 +00:00
parent 197bb21fb7
commit 858055cd0a

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);
}