32 lines
641 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);
VersionT(const std::string& value);
2017-04-03 16:13:46 -07:00
const std::string& to_string() const;
private:
2017-04-03 16:13:46 -07:00
std::string value;
};
bool operator==(const VersionT& left, const VersionT& right);
bool operator!=(const VersionT& left, const VersionT& right);
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
};
}