diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-10 14:14:51 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-10 15:51:50 -0400 |
commit | fcf31a258f2925650cf51f15d0280c0efb67c6a2 (patch) | |
tree | d7959d448dcfa0f0ae34789845e2a6b9b778fdf1 /src/ints/wrap.hpp | |
parent | 3cda94665c73447b09338d6f219ef22b58f066bd (diff) | |
download | tmwa-fcf31a258f2925650cf51f15d0280c0efb67c6a2.tar.gz tmwa-fcf31a258f2925650cf51f15d0280c0efb67c6a2.tar.bz2 tmwa-fcf31a258f2925650cf51f15d0280c0efb67c6a2.tar.xz tmwa-fcf31a258f2925650cf51f15d0280c0efb67c6a2.zip |
consolidate client version handling
Diffstat (limited to 'src/ints/wrap.hpp')
-rw-r--r-- | src/ints/wrap.hpp | 15 |
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 |