From 7d0f47c171b716b7e138157f8165ebf790227582 Mon Sep 17 00:00:00 2001
From: Timo Weingärtner <timo@tiwe.de>
Date: Sun, 23 Mar 2014 23:40:49 +0100
Subject: rfc4251string: add more operators

this adds <= > >= !=
---
 rfc4251.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;
-- 
cgit v1.2.3