From 30fbbc77031db1534b1f97f4eeda0a815ddd728b Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Sat, 27 Nov 2010 18:32:08 +0000 Subject: [PATCH] shared_ptr_base.h (operator>, [...]): Remove comparisons not specified in the C++0x draft. 2010-11-27 Jonathan Wakely * include/bits/shared_ptr_base.h (operator>, operator>=, operator<=): Remove comparisons not specified in the C++0x draft. From-SVN: r167203 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/shared_ptr_base.h | 19 ------------------- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 54e31c2..1c0965a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2010-11-27 Jonathan Wakely + + * include/bits/shared_ptr_base.h (operator>, operator>=, operator<=): + Remove comparisons not specified in the C++0x draft. + 2010-11-27 François Dumont * include/debug/unordered_map (unordered_multimap<>::erase): Fix to diff --git a/libstdc++-v3/include/bits/shared_ptr_base.h b/libstdc++-v3/include/bits/shared_ptr_base.h index d39050f..7e7dd43 100644 --- a/libstdc++-v3/include/bits/shared_ptr_base.h +++ b/libstdc++-v3/include/bits/shared_ptr_base.h @@ -1098,25 +1098,6 @@ _GLIBCXX_BEGIN_NAMESPACE(std) : public _Sp_less<__shared_ptr<_Tp, _Lp>> { }; - // XXX LessThanComparable<_Tp> concept should provide >, >= and <= - template - inline bool - operator>(const __shared_ptr<_Tp, _Lp>& __a, - const __shared_ptr<_Tp, _Lp>& __b) - { return __a.get() > __b.get(); } - - template - inline bool - operator>=(const __shared_ptr<_Tp, _Lp>& __a, - const __shared_ptr<_Tp, _Lp>& __b) - { return __a.get() >= __b.get(); } - - template - inline bool - operator<=(const __shared_ptr<_Tp, _Lp>& __a, - const __shared_ptr<_Tp, _Lp>& __b) - { return __a.get() <= __b.get(); } - // 2.2.3.8 shared_ptr specialized algorithms. template inline void -- 2.7.4