Implement relational operators on Basic_version class; Improve documentation; Fix bug in parser regarding prerelease token treatment on transition between prerelease and build parsing; Add unit tests for missing cases

This commit is contained in:
Marko Zivanovic
2015-10-08 23:27:01 +02:00
parent 1cc5568547
commit 284aa77e13
10 changed files with 155 additions and 57 deletions
+2 -2
View File
@@ -38,9 +38,9 @@ inline int compare(const std::string& l, const std::string& r) {
return c.compare(lv, rv);
}
#define GT(L, R) BOOST_CHECK(compare(L, R) > 0)
#define GT(L, R) BOOST_CHECK(compare(L, R) > 0)
#define GE(L, R) BOOST_CHECK(compare(L, R) >= 0)
#define LT(L, R) BOOST_CHECK(compare(L, R) < 0)
#define LT(L, R) BOOST_CHECK(compare(L, R) < 0)
#define LE(L, R) BOOST_CHECK(compare(L, R) <= 0)
#define EQ(L, R) BOOST_CHECK(compare(L, R) == 0)