summaryrefslogtreecommitdiff
path: root/impl/Complete.hpp
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-08-07 17:56:43 +1000
committerCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-08-07 17:56:43 +1000
commit59fb7d23578c4da14f9c14cc413090b1af13328c (patch)
tree42d187c4b182a025578377f77d1c5e369751b5b3 /impl/Complete.hpp
parentc26f38114fedde81effb938ffbedfe922d77a322 (diff)
Merge complete! Get onto the right branch.
Diffstat (limited to 'impl/Complete.hpp')
-rw-r--r--impl/Complete.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/impl/Complete.hpp b/impl/Complete.hpp
index 997fb6e..81ced52 100644
--- a/impl/Complete.hpp
+++ b/impl/Complete.hpp
@@ -70,9 +70,15 @@ struct Complete {
return _value < other._value;
}
}
+ bool operator>=(const Complete& other) const {
+ return !(*this < other);
+ }
bool operator>(const Complete& other) const {
return other < *this;
}
+ bool operator<=(const Complete& other) const {
+ return !(*this > other);
+ }
bool operator==(const Complete& other) const {
if (_infinity) {
return other._infinity && ((_value < 0 && other._value < 0) ||