diff --git a/include/boost/type_traits/is_copy_constructible.hpp b/include/boost/type_traits/is_copy_constructible.hpp index 4e87131..0a9db9a 100644 --- a/include/boost/type_traits/is_copy_constructible.hpp +++ b/include/boost/type_traits/is_copy_constructible.hpp @@ -27,8 +27,15 @@ namespace detail{ template struct is_copy_constructible_impl2 { #ifndef BOOST_NO_CXX11_DELETED_FUNCTIONS + +#ifdef BOOST_NO_CXX11_DECLTYPE template static boost::type_traits::yes_type test(T1&, boost::mpl::int_()))>* = 0); +#else + template + static boost::type_traits::yes_type test(T1&, decltype(T1(boost::declval()))* = 0); +#endif + static boost::type_traits::no_type test(...); #else template