===================================================================
@@ -78,7 +78,11 @@
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 @@
_M_swap_impl(_Head& __h)
{
using std::swap;
- swap(__h, _M_head_impl);
+ swap(__h, _M_head());
}
_Head _M_head_impl;
===================================================================
@@ -44,7 +44,7 @@
// { dg-warning "note" "" { target *-*-* } 350 }
// { dg-warning "note" "" { target *-*-* } 1082 }
// { dg-warning "note" "" { target *-*-* } 465 }
-// { dg-warning "note" "" { target *-*-* } 581 }
+// { dg-warning "note" "" { target *-*-* } 585 }
// { dg-warning "note" "" { target *-*-* } 1027 }
// { dg-warning "note" "" { target *-*-* } 340 }
// { dg-warning "note" "" { target *-*-* } 290 }