Make constexprs static

This commit is contained in:
Alexander Karatarakis 2017-04-25 17:05:48 -07:00
parent 1aef09ba58
commit 09b9340515
2 changed files with 9 additions and 9 deletions

View File

@ -29,9 +29,9 @@ namespace vcpkg
namespace OptBoolC
{
constexpr OptBool UNSPECIFIED(OptBool::BackingEnum::UNSPECIFIED);
constexpr OptBool ENABLED(OptBool::BackingEnum::ENABLED);
constexpr OptBool DISABLED(OptBool::BackingEnum::DISABLED);
static constexpr OptBool UNSPECIFIED(OptBool::BackingEnum::UNSPECIFIED);
static constexpr OptBool ENABLED(OptBool::BackingEnum::ENABLED);
static constexpr OptBool DISABLED(OptBool::BackingEnum::DISABLED);
}
template<class T>

View File

@ -32,11 +32,11 @@ namespace vcpkg::PostBuildLint
namespace BuildPoliciesC
{
constexpr BuildPolicies NULLVALUE(BuildPolicies::BackingEnum::NULLVALUE);
constexpr BuildPolicies EMPTY_PACKAGE(BuildPolicies::BackingEnum::EMPTY_PACKAGE);
constexpr BuildPolicies DLLS_WITHOUT_LIBS(BuildPolicies::BackingEnum::DLLS_WITHOUT_LIBS);
constexpr BuildPolicies ONLY_RELEASE_CRT(BuildPolicies::BackingEnum::ONLY_RELEASE_CRT);
constexpr BuildPolicies EMPTY_INCLUDE_FOLDER(BuildPolicies::BackingEnum::EMPTY_INCLUDE_FOLDER);
static constexpr BuildPolicies NULLVALUE(BuildPolicies::BackingEnum::NULLVALUE);
static constexpr BuildPolicies EMPTY_PACKAGE(BuildPolicies::BackingEnum::EMPTY_PACKAGE);
static constexpr BuildPolicies DLLS_WITHOUT_LIBS(BuildPolicies::BackingEnum::DLLS_WITHOUT_LIBS);
static constexpr BuildPolicies ONLY_RELEASE_CRT(BuildPolicies::BackingEnum::ONLY_RELEASE_CRT);
static constexpr BuildPolicies EMPTY_INCLUDE_FOLDER(BuildPolicies::BackingEnum::EMPTY_INCLUDE_FOLDER);
constexpr std::array<BuildPolicies, 4> VALUES = { EMPTY_PACKAGE,DLLS_WITHOUT_LIBS, ONLY_RELEASE_CRT, EMPTY_INCLUDE_FOLDER };
static constexpr std::array<BuildPolicies, 4> VALUES = { EMPTY_PACKAGE,DLLS_WITHOUT_LIBS, ONLY_RELEASE_CRT, EMPTY_INCLUDE_FOLDER };
}}