From: redi Date: Sat, 27 Nov 2010 18:32:08 +0000 (+0000) Subject: 2010-11-27 Jonathan Wakely X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3cc423b45192f7485f41cef0dceedbb4ffa83302;p=thirdparty%2Fgcc.git 2010-11-27 Jonathan Wakely * include/bits/shared_ptr_base.h (operator>, operator>=, operator<=): Remove comparisons not specified in the C++0x draft. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167203 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 54e31c2a15c2..1c0965a18cce 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 d39050fcc8d2..7e7dd4395b07 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