Skip to content

Commit 7a354c4

Browse files
committed
Warning suppression for GCC.
[SVN r20396]
1 parent 364826b commit 7a354c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/boost/python/object_operators.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@ namespace boost { namespace python { namespace api {
1919

2020
# if !defined(BOOST_NO_SFINAE) && !defined(BOOST_NO_IS_CONVERTIBLE)
2121

22-
template <class X> char
23-
is_object_operators_helper(object_operators<X> const&);
22+
template <class X>
23+
char is_object_operators_helper(object_operators<X> const*);
2424

2525
typedef char (&no_type)[2];
2626
no_type is_object_operators_helper(...);
2727

28-
template <class X> X& make();
28+
template <class X> X* make_ptr();
2929

3030
template <class L, class R>
3131
struct is_object_operators
3232
{
3333
enum {
3434
value
35-
= (sizeof(api::is_object_operators_helper(api::make<L>()))
36-
+ sizeof(api::is_object_operators_helper(api::make<R>()))
35+
= (sizeof(api::is_object_operators_helper(api::make_ptr<L>()))
36+
+ sizeof(api::is_object_operators_helper(api::make_ptr<R>()))
3737
< 4
3838
)
3939
};

0 commit comments

Comments
 (0)