diff options
Diffstat (limited to 'gcc-4.4.3/libstdc++-v3/include/bits/unique_ptr.h')
-rw-r--r-- | gcc-4.4.3/libstdc++-v3/include/bits/unique_ptr.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/gcc-4.4.3/libstdc++-v3/include/bits/unique_ptr.h b/gcc-4.4.3/libstdc++-v3/include/bits/unique_ptr.h index b686d11fd..c1185f242 100644 --- a/gcc-4.4.3/libstdc++-v3/include/bits/unique_ptr.h +++ b/gcc-4.4.3/libstdc++-v3/include/bits/unique_ptr.h @@ -204,7 +204,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) } void - swap(unique_ptr&& __u) + swap(unique_ptr& __u) { using std::swap; swap(_M_t, __u._M_t); @@ -350,7 +350,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) void reset(_Up) = delete; void - swap(unique_ptr&& __u) + swap(unique_ptr& __u) { using std::swap; swap(_M_t, __u._M_t); @@ -389,18 +389,6 @@ _GLIBCXX_BEGIN_NAMESPACE(std) unique_ptr<_Tp, _Tp_Deleter>& __y) { __x.swap(__y); } - template<typename _Tp, typename _Tp_Deleter> - inline void - swap(unique_ptr<_Tp, _Tp_Deleter>&& __x, - unique_ptr<_Tp, _Tp_Deleter>& __y) - { __x.swap(__y); } - - template<typename _Tp, typename _Tp_Deleter> - inline void - swap(unique_ptr<_Tp, _Tp_Deleter>& __x, - unique_ptr<_Tp, _Tp_Deleter>&& __y) - { __x.swap(__y); } - template<typename _Tp, typename _Tp_Deleter, typename _Up, typename _Up_Deleter> inline bool |