1
0
Fork 0
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:
Won Seong-Yeon 2019-07-13 23:11:39 +09:00 committed by Daniil Goncharov
parent b307dfd883
commit 58c0b9ac59

View file

@ -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 {