From 6ca8d5e0d99c628780c740ce3df37f98d18b3e75 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 3 Nov 2013 19:20:09 +0000 Subject: [PATCH] Merge Visual C++ 12 fix for Unordered. [SVN r86551] --- .../boost/unordered/detail/extract_key.hpp | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/include/boost/unordered/detail/extract_key.hpp b/include/boost/unordered/detail/extract_key.hpp index 60943d9b..92524b54 100644 --- a/include/boost/unordered/detail/extract_key.hpp +++ b/include/boost/unordered/detail/extract_key.hpp @@ -56,19 +56,19 @@ namespace detail { return no_key(); } -#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) - template - static no_key extract(Args const&...) - { - return no_key(); - } -#else template static no_key extract(Arg const&) { return no_key(); } +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) + template + static no_key extract(Arg1 const&, Arg2 const&, Args const&...) + { + return no_key(); + } +#else template static no_key extract(Arg1 const&, Arg2 const&) { @@ -107,14 +107,6 @@ namespace detail { return k; } -#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) - template - static no_key extract(Args const&...) - { - return no_key(); - } -#else - static no_key extract() { return no_key(); @@ -126,8 +118,16 @@ namespace detail { return no_key(); } - template - static no_key extract(Arg const&, Arg1 const&) + template + static no_key extract(Arg1 const&, Arg2 const&) + { + return no_key(); + } + +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) + template + static no_key extract(Arg1 const&, Arg2 const&, Arg3 const&, + Args const&...) { return no_key(); }