stl_pair.h (swap): Do not swap rvalues.
[platform/upstream/gcc.git] / libstdc++-v3 / include / debug / multiset.h
index 3e4ee86..a952663 100644 (file)
@@ -245,11 +245,7 @@ namespace __debug
       }
 
       void
-#ifdef __GXX_EXPERIMENTAL_CXX0X__
-      swap(multiset&& __x)
-#else
       swap(multiset& __x)
-#endif
       {
        _Base::swap(__x);
        this->_M_swap(__x);
@@ -376,20 +372,6 @@ namespace __debug
         multiset<_Key, _Compare, _Allocator>& __y)
     { return __x.swap(__y); }
 
-#ifdef __GXX_EXPERIMENTAL_CXX0X__
-  template<typename _Key, typename _Compare, typename _Allocator>
-    void
-    swap(multiset<_Key, _Compare, _Allocator>&& __x,
-        multiset<_Key, _Compare, _Allocator>& __y)
-    { return __x.swap(__y); }
-
-  template<typename _Key, typename _Compare, typename _Allocator>
-    void
-    swap(multiset<_Key, _Compare, _Allocator>& __x,
-        multiset<_Key, _Compare, _Allocator>&& __y)
-    { return __x.swap(__y); }
-#endif
-
 } // namespace __debug
 } // namespace std