From 7a354c4ff4d8e40118358c39b5830cfb9fa7653e Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 15 Oct 2003 23:19:48 +0000 Subject: [PATCH] Warning suppression for GCC. [SVN r20396] --- include/boost/python/object_operators.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 ) };