]> git.tdb.fi Git - libs/gl.git/blobdiff - source/extension.h
Add a less-than operator to Version
[libs/gl.git] / source / extension.h
index 85b4fc4af27e0418bf9d4c09932ad835899724f6..b44d89007c12610344347632c441d175cc5ff89a 100644 (file)
@@ -29,6 +29,7 @@ struct Version
        Version(const std::string &);
 
        bool operator>=(const Version &) const;
+       bool operator<(const Version &o) const { return !(*this>=o); }
 };