blob: 1ce63690fe0803d444ea45908f3006e62485c8cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#pragma once
#pragma once
#include <string>
namespace vcpkg::PostBuildLint::ConfigurationType
{
enum class BackingEnum
{
NULLVALUE = 0,
DEBUG = 1,
RELEASE = 2
};
struct Type
{
constexpr Type() : backing_enum(BackingEnum::NULLVALUE) {}
constexpr explicit Type(BackingEnum backing_enum) : backing_enum(backing_enum) { }
constexpr operator BackingEnum() const { return backing_enum; }
const std::string& to_string() const;
private:
BackingEnum backing_enum;
};
static const std::string ENUM_NAME = "vcpkg::PostBuildLint::ConfigurationType";
static constexpr Type NULLVALUE(BackingEnum::NULLVALUE);
static constexpr Type DEBUG(BackingEnum::DEBUG);
static constexpr Type RELEASE(BackingEnum::RELEASE);
static constexpr std::array<Type, 2> values = { DEBUG, RELEASE };
}
|