summaryrefslogtreecommitdiff
path: root/src/ints/wrap.hpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-13 10:05:15 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-13 10:05:15 -0400
commitf54f335c541ecb61f9e9888848eb21b8d43877b7 (patch)
tree5dcd2680a4ba6791afe4d952e10b1b43ec761580 /src/ints/wrap.hpp
parent3cda94665c73447b09338d6f219ef22b58f066bd (diff)
parent607d40ebcac47555cc01da8ee61c2fae5cec3186 (diff)
downloadtmwa-f54f335c541ecb61f9e9888848eb21b8d43877b7.tar.gz
tmwa-f54f335c541ecb61f9e9888848eb21b8d43877b7.tar.bz2
tmwa-f54f335c541ecb61f9e9888848eb21b8d43877b7.tar.xz
tmwa-f54f335c541ecb61f9e9888848eb21b8d43877b7.zip
Merge pull request #205 from mekolat/version
consolidate client version handling
Diffstat (limited to 'src/ints/wrap.hpp')
-rw-r--r--src/ints/wrap.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ints/wrap.hpp b/src/ints/wrap.hpp
index 25b03c1..2c8cd20 100644
--- a/src/ints/wrap.hpp
+++ b/src/ints/wrap.hpp
@@ -62,6 +62,21 @@ namespace ints
{
return l._value < r._value;
}
+ template<class W, typename=typename W::wrapped_type>
+ bool operator > (W l, W r)
+ {
+ return l._value > r._value;
+ }
+ template<class W, typename=typename W::wrapped_type>
+ bool operator <= (W l, W r)
+ {
+ return l._value <= r._value;
+ }
+ template<class W, typename=typename W::wrapped_type>
+ bool operator >= (W l, W r)
+ {
+ return l._value >= r._value;
+ }
template<class T>
struct Sub : T