From 4b93facaaa1cd9cfa1056d1dd6bffd66532d9764 Mon Sep 17 00:00:00 2001 From: Antony Polukhin Date: Tue, 6 Aug 2013 15:37:00 +0000 Subject: [PATCH] Atempt to workaround Intel issue with SFINAE (refs #8802) [SVN r85222] --- include/boost/type_traits/is_copy_constructible.hpp | 7 +++++++ 1 file changed, 7 insertions(+) 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