3 #include "boost/algorithm/string.hpp" 4 #include "boost/lexical_cast.hpp" 12 namespace releaseversion {
28 std::vector<std::string>
parts;
29 parts.reserve(releaseVersion.size());
31 parts.erase(remove_if(parts.begin(), parts.end(),
IsEmpty()), parts.end());
33 if(parts.size() < 3) {
47 major_ = boost::lexical_cast<
unsigned int>(parts[0]);
48 minor_ = boost::lexical_cast<
unsigned int>(parts[1]);
bool operator()(std::string const &s) const
bool isEarlierRelease(std::string const &a, std::string const &b)
bool operator<(DecomposedReleaseVersion const &other) const
bool operator()(char const c) const
DecomposedReleaseVersion(std::string releaseVersion)