aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-03-29 17:32:47 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-03-31 18:01:13 -0700
commit946734aa7349399892704ca9abf7be718cfb24a7 (patch)
tree84e944077eaed52e1300602cebbb73aad1c9d16d /toolsrc/include
parente07471820951d5b23c9e176fae235bd8e3648651 (diff)
downloadvcpkg-946734aa7349399892704ca9abf7be718cfb24a7.tar.gz
vcpkg-946734aa7349399892704ca9abf7be718cfb24a7.zip
Add name_and_version_diff_t
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/version_t.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/toolsrc/include/version_t.h b/toolsrc/include/version_t.h
index 9a4e11a39..47e5aec4b 100644
--- a/toolsrc/include/version_t.h
+++ b/toolsrc/include/version_t.h
@@ -25,4 +25,15 @@ namespace vcpkg
std::string toString() const;
};
+
+ struct name_and_version_diff_t
+ {
+ static bool compare_by_name(const name_and_version_diff_t& left, const name_and_version_diff_t& right)
+ {
+ return left.name < right.name;
+ }
+
+ std::string name;
+ version_diff_t version_diff;
+ };
}