mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 06:29:00 +08:00
29 lines
578 B
C
29 lines
578 B
C
|
#pragma once
|
||
|
#include <string>
|
||
|
|
||
|
namespace vcpkg
|
||
|
{
|
||
|
struct Version
|
||
|
{
|
||
|
Version();
|
||
|
Version(const std::string& value);
|
||
|
|
||
|
std::string value;
|
||
|
};
|
||
|
|
||
|
bool operator ==(const Version& left, const Version& right);
|
||
|
bool operator !=(const Version& left, const Version& right);
|
||
|
std::string to_printf_arg(const Version& version);
|
||
|
|
||
|
struct version_diff_t
|
||
|
{
|
||
|
Version left;
|
||
|
Version right;
|
||
|
|
||
|
version_diff_t();
|
||
|
version_diff_t(const Version& left, const Version& right);
|
||
|
|
||
|
std::string toString() const;
|
||
|
};
|
||
|
}
|