forked from boostorg/unordered
Unordered: Fix unnecessary_copy_tests failures.
[SVN r73894]
This commit is contained in:
1 parent
c001139465
commit
2ecfa0e08c
3 files changed
+58
-19
No files matched your search
@@ -38,6 +38,11 @@ namespace detail {
|
||||
return v;
|
||||
}
|
||||
|
||||
static key_type const& extract(BOOST_RV_REF(key_type) v)
|
||||
{
|
||||
return v;
|
||||
}
|
||||
|
||||
static no_key extract()
|
||||
{
|
||||
return no_key();
|
||||
@@ -86,6 +91,13 @@ namespace detail {
|
||||
return v;
|
||||
}
|
||||
|
||||
// TODO: Why does this cause errors?
|
||||
//
|
||||
//static key_type const& extract(BOOST_RV_REF(key_type) v)
|
||||
//{
|
||||
// return v;
|
||||
//}
|
||||
|
||||
template <class Second>
|
||||
static key_type const& extract(std::pair<key_type, Second> const& v)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user