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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user