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