mirror of
https://github.com/aantron/better-enums.git
synced 2025-12-06 16:56:42 +08:00
Explicitly deleted default constructor.
This commit is contained in:
parent
6aa19e9b4a
commit
aab5d8c668
1
Enum.h
1
Enum.h
@ -57,6 +57,7 @@
|
|||||||
static bool caseValid(const char *name) \
|
static bool caseValid(const char *name) \
|
||||||
{ return _Super::caseValid(name); } \
|
{ return _Super::caseValid(name); } \
|
||||||
\
|
\
|
||||||
|
EnumType() = delete; \
|
||||||
EnumType(_Value value) : _value(value) { } \
|
EnumType(_Value value) : _value(value) { } \
|
||||||
template <typename IntegralType> \
|
template <typename IntegralType> \
|
||||||
explicit EnumType(IntegralType value, \
|
explicit EnumType(IntegralType value, \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user