mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-13 00:04:20 +00:00
Fixing Syntax Error caused by "Windows.h" (#7)
OMG! Windows.h define wack macro...max() min()!
This commit is contained in:
parent
b307dfd883
commit
58c0b9ac59
1 changed files with 2 additions and 2 deletions
|
|
@ -69,12 +69,12 @@ struct enum_range final {
|
|||
|
||||
static_assert(MAGIC_ENUM_RANGE_MAX > 0,
|
||||
"MAGIC_ENUM_RANGE_MAX must be greater than 0.");
|
||||
static_assert(MAGIC_ENUM_RANGE_MAX < std::numeric_limits<int>::max(),
|
||||
static_assert(MAGIC_ENUM_RANGE_MAX < (std::numeric_limits<int>::max)(),
|
||||
"MAGIC_ENUM_RANGE_MAX must be less than INT_MAX.");
|
||||
|
||||
static_assert(MAGIC_ENUM_RANGE_MIN <= 0,
|
||||
"MAGIC_ENUM_RANGE_MIN must be less or equals than 0.");
|
||||
static_assert(MAGIC_ENUM_RANGE_MIN > std::numeric_limits<int>::min(),
|
||||
static_assert(MAGIC_ENUM_RANGE_MIN > (std::numeric_limits<int>::min)(),
|
||||
"MAGIC_ENUM_RANGE_MIN must be greater than INT_MIN.");
|
||||
|
||||
namespace detail {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue