aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'lang/cpp/src')
-rw-r--r--lang/cpp/src/engineinfo.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/lang/cpp/src/engineinfo.h b/lang/cpp/src/engineinfo.h
index 0bf7d0e8..52bf3474 100644
--- a/lang/cpp/src/engineinfo.h
+++ b/lang/cpp/src/engineinfo.h
@@ -85,6 +85,16 @@ public:
return operator<(Version(other));
}
+ bool operator <= (const Version &other)
+ {
+ return !operator>(other);
+ }
+
+ bool operator <= (const char *other)
+ {
+ return operator<=(Version(other));
+ }
+
bool operator > (const char* other)
{
return operator>(Version(other));
@@ -95,6 +105,16 @@ public:
return !operator<(other) && !operator==(other);
}
+ bool operator >= (const Version &other)
+ {
+ return !operator<(other);
+ }
+
+ bool operator >= (const char *other)
+ {
+ return operator>=(Version(other));
+ }
+
bool operator == (const Version& other)
{
return major == other.major
@@ -107,6 +127,16 @@ public:
return operator==(Version(other));
}
+ bool operator != (const Version &other)
+ {
+ return !operator==(other);
+ }
+
+ bool operator != (const char *other)
+ {
+ return operator!=(Version(other));
+ }
+
friend std::ostream& operator << (std::ostream& stream, const Version& ver)
{
stream << ver.major;