mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-13 10:47:51 +08:00
75f19a58ba
* [vcpkg] Add string constructor * Update versiont.h
32 lines
623 B
C++
32 lines
623 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
namespace vcpkg
|
|
{
|
|
struct VersionT
|
|
{
|
|
VersionT();
|
|
VersionT(std::string&& value);
|
|
VersionT(const std::string& value);
|
|
|
|
const std::string& to_string() const;
|
|
|
|
private:
|
|
std::string value;
|
|
};
|
|
|
|
bool operator==(const VersionT& left, const VersionT& right);
|
|
bool operator!=(const VersionT& left, const VersionT& right);
|
|
|
|
struct VersionDiff
|
|
{
|
|
VersionT left;
|
|
VersionT right;
|
|
|
|
VersionDiff();
|
|
VersionDiff(const VersionT& left, const VersionT& right);
|
|
|
|
std::string to_string() const;
|
|
};
|
|
}
|