| 86 | } |
| 87 | |
| 88 | static std::vector<int> parse_version (const std::string& str) |
| 89 | { |
| 90 | std::istringstream in(str); |
| 91 | std::vector<int> version; |
| 92 | std::string component; |
| 93 | while (std::getline(in, component, '.')) { |
| 94 | version.push_back(std::atoi(component.c_str())); |
| 95 | } |
| 96 | return version; |
| 97 | } |
| 98 | |
| 99 | static const std::vector<int>& git_version () |
| 100 | { |