diff options
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/VersionT.cpp | 1 | ||||
| -rw-r--r-- | toolsrc/include/VersionT.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/toolsrc/include/VersionT.cpp b/toolsrc/include/VersionT.cpp index c51052b98..6ea5d3810 100644 --- a/toolsrc/include/VersionT.cpp +++ b/toolsrc/include/VersionT.cpp @@ -6,6 +6,7 @@ namespace vcpkg { VersionT::VersionT() : value("0.0.0") {} VersionT::VersionT(const std::string& value) : value(value) {} + std::string VersionT::to_string() const { return value; } bool operator==(const VersionT& left, const VersionT& right) { return left.value == right.value; } bool operator!=(const VersionT& left, const VersionT& right) { return left.value != right.value; } std::string to_printf_arg(const VersionT& version) { return version.value; } diff --git a/toolsrc/include/VersionT.h b/toolsrc/include/VersionT.h index aa2635855..36d050e08 100644 --- a/toolsrc/include/VersionT.h +++ b/toolsrc/include/VersionT.h @@ -8,12 +8,13 @@ namespace vcpkg VersionT(); VersionT(const std::string& value); + std::string to_string() const; + std::string value; }; bool operator ==(const VersionT& left, const VersionT& right); bool operator !=(const VersionT& left, const VersionT& right); - std::string to_printf_arg(const VersionT& version); struct VersionDiff { |
