Remove the optimization for std::pair with a key reference. It'll be too much hassle to get a very unusual use case to work on all compilers.

[SVN r56461]
This commit is contained in:
Daniel James
2009-09-28 23:06:03 +00:00
parent 31cd8f4e16
commit 2b8680d2c4
2 changed files with 3 additions and 16 deletions

View File

@@ -107,20 +107,6 @@ namespace unordered_detail {
return v.first;
}
template <class Second>
static key_type const& extract(
std::pair<key_type&, Second> const& v)
{
return v.first;
}
template <class Second>
static key_type const& extract(
std::pair<key_type const&, Second> const& v)
{
return v.first;
}
#if defined(BOOST_UNORDERED_STD_FORWARD)
template <class Arg1, class... Args>
static key_type const& extract(key_type const& k,