mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-25 03:53:32 +01:00

Fixes #12190 Fixes #12208 Fixes #12234 Fixes #12286 Fixes #12315 Fixes #12186 Fixes #12331 Fixes googleapis/google-cloud-cpp#4487
33 lines
718 B
C++
33 lines
718 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
namespace vcpkg
|
|
{
|
|
struct VersionT
|
|
{
|
|
VersionT() noexcept;
|
|
VersionT(std::string&& value, int port_version);
|
|
VersionT(const std::string& value, int port_version);
|
|
|
|
std::string to_string() const;
|
|
|
|
friend bool operator==(const VersionT& left, const VersionT& right);
|
|
friend bool operator!=(const VersionT& left, const VersionT& right);
|
|
|
|
private:
|
|
std::string value;
|
|
int port_version;
|
|
};
|
|
|
|
struct VersionDiff
|
|
{
|
|
VersionT left;
|
|
VersionT right;
|
|
|
|
VersionDiff() noexcept;
|
|
VersionDiff(const VersionT& left, const VersionT& right);
|
|
|
|
std::string to_string() const;
|
|
};
|
|
}
|