mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
Try to work around Visual C++'s variadic overload bug.
Possibly too late for the release. [SVN r86482]
This commit is contained in:
@ -56,19 +56,19 @@ namespace detail {
|
|||||||
return no_key();
|
return no_key();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
|
||||||
template <class... Args>
|
|
||||||
static no_key extract(Args const&...)
|
|
||||||
{
|
|
||||||
return no_key();
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
template <class Arg>
|
template <class Arg>
|
||||||
static no_key extract(Arg const&)
|
static no_key extract(Arg const&)
|
||||||
{
|
{
|
||||||
return no_key();
|
return no_key();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
template <class Arg1, class Arg2, class... Args>
|
||||||
|
static no_key extract(Arg1 const&, Arg2 const&, Args const&...)
|
||||||
|
{
|
||||||
|
return no_key();
|
||||||
|
}
|
||||||
|
#else
|
||||||
template <class Arg1, class Arg2>
|
template <class Arg1, class Arg2>
|
||||||
static no_key extract(Arg1 const&, Arg2 const&)
|
static no_key extract(Arg1 const&, Arg2 const&)
|
||||||
{
|
{
|
||||||
@ -107,14 +107,6 @@ namespace detail {
|
|||||||
return k;
|
return k;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
|
||||||
template <class... Args>
|
|
||||||
static no_key extract(Args const&...)
|
|
||||||
{
|
|
||||||
return no_key();
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
|
|
||||||
static no_key extract()
|
static no_key extract()
|
||||||
{
|
{
|
||||||
return no_key();
|
return no_key();
|
||||||
@ -126,6 +118,13 @@ namespace detail {
|
|||||||
return no_key();
|
return no_key();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
|
||||||
|
template <class Arg1, class Arg2, class... Args>
|
||||||
|
static no_key extract(Arg1 const&, Arg2 const&, Args const&...)
|
||||||
|
{
|
||||||
|
return no_key();
|
||||||
|
}
|
||||||
|
#else
|
||||||
template <class Arg, class Arg1>
|
template <class Arg, class Arg1>
|
||||||
static no_key extract(Arg const&, Arg1 const&)
|
static no_key extract(Arg const&, Arg1 const&)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user