diff --git a/include/boost/python/detail/is_xxx.hpp b/include/boost/python/detail/is_xxx.hpp index ad888b84..0faea999 100644 --- a/include/boost/python/detail/is_xxx.hpp +++ b/include/boost/python/detail/is_xxx.hpp @@ -12,6 +12,7 @@ # if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) # include +# include # define BOOST_PYTHON_IS_XXX_DEF(name, qualified_name, nargs) \ template \ @@ -20,7 +21,7 @@ struct is_##name \ typedef char yes; \ typedef char (&no)[2]; \ \ - static X_ dummy; \ + static typename add_reference::type dummy; \ \ template < BOOST_PP_ENUM_PARAMS_Z(1, nargs, class U) > \ static yes test( \