aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2014-03-23 23:40:49 +0100
committerTimo Weingärtner <timo@tiwe.de>2014-03-23 23:40:49 +0100
commit7d0f47c171b716b7e138157f8165ebf790227582 (patch)
treedca35435ef92ff1503cd3e1d03c558c359d961a2
parentf4343c2060ea70639dfc7c9a5eeb70f0b5ec5697 (diff)
downloadssh-agent-filter-7d0f47c171b716b7e138157f8165ebf790227582.tar.gz
rfc4251string: add more operators
this adds <= > >= !=
-rw-r--r--rfc4251.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/rfc4251.h b/rfc4251.h
index b2f9658..74bdc34 100644
--- a/rfc4251.h
+++ b/rfc4251.h
@@ -35,6 +35,7 @@
#include <stdexcept>
#include <arpa/inet.h> // ntohl() / htonl()
#include <gmpxx.h>
+#include <boost/operators.hpp>
struct rfc4251byte {
union {
@@ -136,7 +137,7 @@ inline std::ostream & operator<< (std::ostream & os, rfc4251uint64 const & x) {
}
-struct rfc4251string {
+struct rfc4251string : boost::totally_ordered<rfc4251string> {
std::vector<char> value;
rfc4251string () = default;