vcpkg/toolsrc/include/vcpkg/versiont.h
atkawa7 75f19a58ba [vcpkg] Add string constructor (#2429)
* [vcpkg] Add string constructor

* Update versiont.h
2018-01-26 14:44:07 -08:00

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;
};
}