1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-10 23:44:29 +00:00

wow, msvc not follow standard

This commit is contained in:
neargye 2019-09-29 17:50:05 +05:00
parent 52f36fc5a0
commit 2f9400bcf3
2 changed files with 4 additions and 0 deletions

View file

@ -454,10 +454,12 @@ TEST_CASE("type_traits") {
REQUIRE_FALSE(is_scoped_enum_v<Directions>);
REQUIRE_FALSE(is_scoped_enum_v<number>);
#if defined(_MSC_VER) && _MSC_VER != 1923 // MSVC bug, we can not check is enum fixed
REQUIRE(is_fixed_enum_v<Color>);
REQUIRE(is_fixed_enum_v<Numbers>);
REQUIRE_FALSE(is_fixed_enum_v<Directions>);
REQUIRE(is_fixed_enum_v<number>);
#endif
}
TEST_CASE("enum_traits") {