aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely.gcc@gmail.com>2010-11-27 18:32:08 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2010-11-27 18:32:08 +0000
commit30fbbc77031db1534b1f97f4eeda0a815ddd728b (patch)
tree6de2e9d4bdd49bab22ed96eb497bad7d8053b700
parent9d780cb2fbf609e85c00d037a570f53a3ea4773c (diff)
downloadgcc-30fbbc77031db1534b1f97f4eeda0a815ddd728b.zip
gcc-30fbbc77031db1534b1f97f4eeda0a815ddd728b.tar.gz
gcc-30fbbc77031db1534b1f97f4eeda0a815ddd728b.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/bits/shared_ptr_base.h19
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 <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
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<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