mirror of
https://github.com/fmtlib/fmt.git
synced 2026-05-03 19:30:47 +02:00
Deprecated implicit conversion of enums to ints for consistency with scoped enums
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user