Deprecated implicit conversion of enums to ints for consistency with scoped enums

This commit is contained in:
Victor Zverovich
2022-07-03 09:02:22 -07:00
parent c12b4c0cf1
commit 0c06c81da8
7 changed files with 23 additions and 19 deletions
+1
View File
@@ -224,6 +224,7 @@ TEST(ranges_test, range) {
}
enum test_enum { foo };
auto format_as(test_enum e) -> int { return e; }
TEST(ranges_test, enum_range) {
auto v = std::vector<test_enum>{test_enum::foo};