Commit 30fbbc77 by Jonathan Wakely Committed by Jonathan Wakely

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
parent 9d780cb2
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment