You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
dpieve
changed the title
I can't compile (C2131) when I change NAMEOF_ENUM_RANGE_MAX >= 3590
I can't compile (C2131) when NAMEOF_ENUM_RANGE_MAX >= 3590
Oct 3, 2023
Same occurs if I inject in namespace nameof::customize. Copying the example from here.
enum class number { one = 100, two = 200, three = 4000 }; // three is greater than 3590.
template <> struct nameof::customize::enum_range<number> { static constexpr int min = 100; static constexpr int max = 4000; }
auto none = nameof::nameof_enum(number::three); // fails.
If I set
NAMEOF_ENUM_RANGE_MAX
to3590
(or more) then I receive the error C2131:If
NAMEOF_ENUM_RANGE_MAX <= 3580
, it works fine.The limitations say I could go up to
INT16_MAX
(32766). What am I missing?Code:
Setup
Visual Studio 17.7.2;
/std:c++latest
nameof v0.10.3
The text was updated successfully, but these errors were encountered: