shared_ptr_base.h (operator>, [...]): Remove comparisons not specified in the C++0x draft.
2010-11-27 Jonathan Wakely <jwakely.gcc@gmail.com> * include/bits/shared_ptr_base.h (operator>, operator>=, operator<=): Remove comparisons not specified in the C++0x draft. From-SVN: r167203
This commit is contained in:
parent
9d780cb2fb
commit
30fbbc7703
|
@ -1,3 +1,8 @@
|
|||
2010-11-27 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
* include/bits/shared_ptr_base.h (operator>, operator>=, operator<=):
|
||||
Remove comparisons not specified in the C++0x draft.
|
||||
|
||||
2010-11-27 François Dumont <francois.cppdevs@free.fr>
|
||||
|
||||
* include/debug/unordered_map (unordered_multimap<>::erase): Fix to
|
||||
|
|
|
@ -1098,25 +1098,6 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
|
|||
: public _Sp_less<__shared_ptr<_Tp, _Lp>>
|
||||
{ };
|
||||
|
||||
// XXX LessThanComparable<_Tp> concept should provide >, >= and <=
|
||||
template<typename _Tp, _Lock_policy _Lp>
|
||||
inline bool
|
||||
operator>(const __shared_ptr<_Tp, _Lp>& __a,
|
||||
const __shared_ptr<_Tp, _Lp>& __b)
|
||||
{ return __a.get() > __b.get(); }
|
||||
|
||||
template<typename _Tp, _Lock_policy _Lp>
|
||||
inline bool
|
||||
operator>=(const __shared_ptr<_Tp, _Lp>& __a,
|
||||
const __shared_ptr<_Tp, _Lp>& __b)
|
||||
{ return __a.get() >= __b.get(); }
|
||||
|
||||
template<typename _Tp, _Lock_policy _Lp>
|
||||
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<typename _Tp, _Lock_policy _Lp>
|
||||
inline void
|
||||
|
|
Loading…
Reference in New Issue