Atempt to workaround Intel issue with SFINAE (refs #8802)

[SVN r85222]
This commit is contained in:
Antony Polukhin
2013-08-06 15:37:00 +00:00
parent c646121426
commit 4b93facaaa

View File

@ -27,8 +27,15 @@ namespace detail{
template <bool DerivedFromNoncopyable, class T>
struct is_copy_constructible_impl2 {
#ifndef BOOST_NO_CXX11_DELETED_FUNCTIONS
#ifdef BOOST_NO_CXX11_DECLTYPE
template <class T1>
static boost::type_traits::yes_type test(T1&, boost::mpl::int_<sizeof(T1(boost::declval<T1&>()))>* = 0);
#else
template <class T1>
static boost::type_traits::yes_type test(T1&, decltype(T1(boost::declval<T1&>()))* = 0);
#endif
static boost::type_traits::no_type test(...);
#else
template <class T1>