Intel compiler: do not use SFINAE with decltype/sizeof on deleted functions. Use fallback mode instead (refs #8802)

[SVN r85319]
This commit is contained in:
Antony Polukhin committed 2013-08-12 13:25:01 +00:00
1 parent 4b93facaaa
commit e236bd7c14
8 files changed
+18 -12

No files matched your search

@@ -26,7 +26,13 @@ namespace detail{
template <bool DerivedFromNoncopyable, class T>
struct is_copy_constructible_impl2 {
#ifndef BOOST_NO_CXX11_DELETED_FUNCTIONS
// Intel compiler has problems with SFINAE for copy constructors and deleted functions:
//
// error: function *function_name* cannot be referenced -- it is a deleted function
// static boost::type_traits::yes_type test(T1&, decltype(T1(boost::declval<T1&>()))* = 0);
// ^
#if !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS) && !defined(BOOST_INTEL_CXX_VERSION)
#ifdef BOOST_NO_CXX11_DECLTYPE
template <class T1>