1 #include <msp/strings/lexicalcast.h>
2 #include <msp/strings/utils.h>
10 Version::Version(unsigned short a, unsigned short i)
16 Version::Version(const string &s)
18 vector<string> parts = split(s, '.');
19 major = lexical_cast<unsigned>(parts[0]);
20 minor = lexical_cast<unsigned>(parts[1]);
23 bool Version::operator>=(const Version &other) const
25 return major>other.major || (major==other.major && minor>=other.minor);