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(); }