3 #include "boost/algorithm/string.hpp"
11 namespace releaseversion {
22 : irregular_(
true), major_(0), minor_(0) {
24 std::vector<std::string>
parts;
25 parts.reserve(releaseVersion.size());
27 parts.erase(remove_if(parts.begin(), parts.end(),
IsEmpty()), parts.end());
29 if (parts.size() < 3) {
43 major_ = std::stoul(parts[0]);
44 minor_ = std::stoul(parts[1]);
const edm::EventSetup & c
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)