mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-05 05:20:24 +08:00
list (list<>::list(list&&)): Fix.
2007-10-10 Paolo Carlini <pcarlini@suse.de> * include/debug/list (list<>::list(list&&)): Fix. * include/debug/vector (vector<>::vector(vector&&)): Likewise. * include/debug/deque (deque<>::deque(deque&&)): Likewise. * include/debug/set.h (set<>::set(set&&)): Likewise. * include/debug/map.h (map<>::map(map&&)): Likewise. * include/debug/multiset.h (multiset<>::multiset(multiset&&)):Likewise. * include/debug/multimap.h (multimap<>::multimap(multimap&&)):Likewise. From-SVN: r129213
This commit is contained in:
parent
abc8b4d90e
commit
cc8c030d88
@ -1,3 +1,13 @@
|
||||
2007-10-10 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
* include/debug/list (list<>::list(list&&)): Fix.
|
||||
* include/debug/vector (vector<>::vector(vector&&)): Likewise.
|
||||
* include/debug/deque (deque<>::deque(deque&&)): Likewise.
|
||||
* include/debug/set.h (set<>::set(set&&)): Likewise.
|
||||
* include/debug/map.h (map<>::map(map&&)): Likewise.
|
||||
* include/debug/multiset.h (multiset<>::multiset(multiset&&)):Likewise.
|
||||
* include/debug/multimap.h (multimap<>::multimap(multimap&&)):Likewise.
|
||||
|
||||
2007-10-10 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
PR libstdc++/33633
|
||||
|
@ -92,7 +92,7 @@ namespace __debug
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
deque(deque&& __x)
|
||||
: _Base(__x), _Safe_base()
|
||||
: _Base(std::forward<deque>(__x)), _Safe_base()
|
||||
{ this->_M_swap(__x); }
|
||||
#endif
|
||||
|
||||
|
@ -121,7 +121,7 @@ namespace __debug
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
list(list&& __x)
|
||||
: _Base(__x), _Safe_base()
|
||||
: _Base(std::forward<list>(__x)), _Safe_base()
|
||||
{ this->_M_swap(__x); }
|
||||
#endif
|
||||
|
||||
|
@ -96,7 +96,7 @@ namespace __debug
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
map(map&& __x)
|
||||
: _Base(__x), _Safe_base()
|
||||
: _Base(std::forward<map>(__x)), _Safe_base()
|
||||
{ this->_M_swap(__x); }
|
||||
#endif
|
||||
|
||||
|
@ -97,7 +97,7 @@ namespace __debug
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
multimap(multimap&& __x)
|
||||
: _Base(__x), _Safe_base()
|
||||
: _Base(std::forward<multimap>(__x)), _Safe_base()
|
||||
{ this->_M_swap(__x); }
|
||||
#endif
|
||||
|
||||
|
@ -94,7 +94,7 @@ namespace __debug
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
multiset(multiset&& __x)
|
||||
: _Base(__x), _Safe_base()
|
||||
: _Base(std::forward<multiset>(__x)), _Safe_base()
|
||||
{ this->_M_swap(__x); }
|
||||
#endif
|
||||
|
||||
|
@ -94,7 +94,7 @@ namespace __debug
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
set(set&& __x)
|
||||
: _Base(__x), _Safe_base()
|
||||
: _Base(std::forward<set>(__x)), _Safe_base()
|
||||
{ this->_M_swap(__x); }
|
||||
#endif
|
||||
|
||||
|
@ -100,8 +100,9 @@ namespace __debug
|
||||
|
||||
#ifdef __GXX_EXPERIMENTAL_CXX0X__
|
||||
vector(vector&& __x)
|
||||
: _Base(__x), _Safe_base(), _M_guaranteed_capacity(this->size())
|
||||
{
|
||||
: _Base(std::forward<vector>(__x)), _Safe_base(),
|
||||
_M_guaranteed_capacity(this->size())
|
||||
{
|
||||
this->_M_swap(__x);
|
||||
__x._M_guaranteed_capacity = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user