diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-06 14:44:38 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-12-06 14:44:38 +0000 |
| commit | f7f2729d9b6d938554b5f8292d3c4054b19e15c4 (patch) | |
| tree | 100f63aeacb1e3f04abe3064b6b553e769e586e8 /libstdc++-v3/include/std/tuple | |
| parent | 9ba23490b01e3b6aa733d064cd50ac8fc4f2e889 (diff) | |
| download | ppe42-gcc-f7f2729d9b6d938554b5f8292d3c4054b19e15c4.tar.gz ppe42-gcc-f7f2729d9b6d938554b5f8292d3c4054b19e15c4.zip | |
2010-12-06 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/46821
* include/std/tuple (_Head_base<,, true>::_M_swap_impl):
Swap the empty bases.
(_Head_base<,, false>::_M_swap_impl): Minor tweak.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error
line number.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167497 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/tuple')
| -rw-r--r-- | libstdc++-v3/include/std/tuple | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libstdc++-v3/include/std/tuple b/libstdc++-v3/include/std/tuple index df9ef1d1694..87dbcb78df6 100644 --- a/libstdc++-v3/include/std/tuple +++ b/libstdc++-v3/include/std/tuple @@ -78,7 +78,11 @@ _GLIBCXX_BEGIN_NAMESPACE(std) const _Head& _M_head() const { return *this; } void - _M_swap_impl(_Head&) { /* no-op */ } + _M_swap_impl(_Head& __h) + { + using std::swap; + swap(__h, _M_head()); + } }; template<std::size_t _Idx, typename _Head> @@ -101,7 +105,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) _M_swap_impl(_Head& __h) { using std::swap; - swap(__h, _M_head_impl); + swap(__h, _M_head()); } _Head _M_head_impl; |

