diff --git a/include/boost/python/object_operators.hpp b/include/boost/python/object_operators.hpp index a17fb614..358b0b76 100644 --- a/include/boost/python/object_operators.hpp +++ b/include/boost/python/object_operators.hpp @@ -19,21 +19,21 @@ namespace boost { namespace python { namespace api { # if !defined(BOOST_NO_SFINAE) && !defined(BOOST_NO_IS_CONVERTIBLE) -template char -is_object_operators_helper(object_operators const&); +template +char is_object_operators_helper(object_operators const*); typedef char (&no_type)[2]; no_type is_object_operators_helper(...); -template X& make(); +template X* make_ptr(); template struct is_object_operators { enum { value - = (sizeof(api::is_object_operators_helper(api::make())) - + sizeof(api::is_object_operators_helper(api::make())) + = (sizeof(api::is_object_operators_helper(api::make_ptr())) + + sizeof(api::is_object_operators_helper(api::make_ptr())) < 4 ) };