mirror of
https://github.com/boostorg/python.git
synced 2026-01-25 18:32:24 +00:00
This commit was manufactured by cvs2svn to create tag
'merged_to_RC_1_32_0'. [SVN r26255]
This commit is contained in:
@@ -9,22 +9,22 @@
|
||||
* 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( object );
|
||||
#endif
|
||||
|
||||
bool accept_const_arg( const object )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool accept_const_arg_with_proto( object);
|
||||
bool accept_const_arg_with_proto( const object)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
BOOST_PYTHON_MODULE( const_argument_ext)
|
||||
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);
|
||||
def( "accept_const_arg", accept_const_arg );
|
||||
}
|
||||
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
"""
|
||||
>>> from const_argument_ext import *
|
||||
>>> accept_const_arg_noproto(1)
|
||||
1
|
||||
>>> accept_const_arg_with_proto(1)
|
||||
>>> accept_const_arg(1)
|
||||
1
|
||||
"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user