33 lines
718 B
C
Raw Normal View History

2017-04-03 16:13:46 -07:00
#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);
2017-04-03 16:13:46 -07:00
std::string to_string() const;
friend bool operator==(const VersionT& left, const VersionT& right);
friend bool operator!=(const VersionT& left, const VersionT& right);
private:
2017-04-03 16:13:46 -07:00
std::string value;
int port_version;
2017-04-03 16:13:46 -07:00
};
2017-04-03 16:18:21 -07:00
struct VersionDiff
2017-04-03 16:13:46 -07:00
{
VersionT left;
VersionT right;
VersionDiff() noexcept;
2017-04-03 16:18:21 -07:00
VersionDiff(const VersionT& left, const VersionT& right);
2017-04-03 16:13:46 -07:00
std::string to_string() const;
2017-04-03 16:13:46 -07:00
};
}