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

This commit is contained in:
Victor Zverovich
2022-07-03 08:05:47 -07:00
parent c12b4c0cf1
commit 0c06c81da8
7 changed files with 23 additions and 19 deletions
+1
View File
@@ -504,6 +504,7 @@ TEST(printf_test, pointer) {
}
enum test_enum { answer = 42 };
auto format_as(test_enum e) -> int { return e; }
TEST(printf_test, enum) {
EXPECT_PRINTF("42", "%d", answer);