From 1db630d5c9afe31f1d928868440eb9d75b220fe9 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 15 Aug 2011 20:24:12 +0000 Subject: [PATCH] Unordered: Enable the better select_on_container_copy_construction detection for recent Visual C++. [SVN r73799] --- include/boost/unordered/detail/allocator_helpers.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/unordered/detail/allocator_helpers.hpp b/include/boost/unordered/detail/allocator_helpers.hpp index 4a4dff76..295e9f61 100644 --- a/include/boost/unordered/detail/allocator_helpers.hpp +++ b/include/boost/unordered/detail/allocator_helpers.hpp @@ -126,8 +126,7 @@ namespace boost { namespace unordered { namespace detail { BOOST_DEFAULT_TYPE_TMPLT(propagate_on_container_move_assignment); BOOST_DEFAULT_TYPE_TMPLT(propagate_on_container_swap); -// Disabling for Visual C++ for now as it hasn't been tested yet. -#if !defined(BOOST_NO_SFINAE_EXPR) // || BOOST_WORKAROUND(BOOST_MSVC, >= 1400) +#if !defined(BOOST_NO_SFINAE_EXPR) || BOOST_WORKAROUND(BOOST_MSVC, >= 1500) // Specialization is only needed for Visual C++. Without it SFINAE doesn't // kick in. template