summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-06-14 23:35:56 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-06-14 23:35:56 +0000
commit260fdc6ee12365d789e16868a56c9bb94134e6c0 (patch)
tree4fd1d49f6c23f4c533b23915dee987c2aa36d5cd /libstdc++-v3/include
parentf0599f80df2b1b2b8bffee2c78f83183d4813459 (diff)
downloadgcc-260fdc6ee12365d789e16868a56c9bb94134e6c0.tar.gz
2013-06-15 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/57619 * include/bits/unordered_map.h (unordered_map<>::insert, unordered_multimap<>::insert): Use std::forward, not std::move. * testsuite/23_containers/unordered_map/insert/57619.C: New. * testsuite/23_containers/unordered_multimap/insert/57619.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200111 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/bits/unordered_map.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/include/bits/unordered_map.h b/libstdc++-v3/include/bits/unordered_map.h
index 22a5166cc3c..6d5b29e09d2 100644
--- a/libstdc++-v3/include/bits/unordered_map.h
+++ b/libstdc++-v3/include/bits/unordered_map.h
@@ -397,7 +397,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
_Pair&&>::value>::type>
std::pair<iterator, bool>
insert(_Pair&& __x)
- { return _M_h.insert(std::move(__x)); }
+ { return _M_h.insert(std::forward<_Pair>(__x)); }
//@}
//@{
@@ -431,7 +431,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
_Pair&&>::value>::type>
iterator
insert(const_iterator __hint, _Pair&& __x)
- { return _M_h.insert(__hint, std::move(__x)); }
+ { return _M_h.insert(__hint, std::forward<_Pair>(__x)); }
//@}
/**
@@ -1093,7 +1093,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
_Pair&&>::value>::type>
iterator
insert(_Pair&& __x)
- { return _M_h.insert(std::move(__x)); }
+ { return _M_h.insert(std::forward<_Pair>(__x)); }
//@}
//@{
@@ -1125,7 +1125,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER
_Pair&&>::value>::type>
iterator
insert(const_iterator __hint, _Pair&& __x)
- { return _M_h.insert(__hint, std::move(__x)); }
+ { return _M_h.insert(__hint, std::forward<_Pair>(__x)); }
//@}
/**