mirror of
https://github.com/fmtlib/fmt.git
synced 2026-05-05 12:04:11 +02:00
Fix handling of fixed enums in clang (#580)
This commit is contained in:
@@ -1508,6 +1508,14 @@ TEST(FormatTest, Enum) {
|
||||
EXPECT_EQ("0", fmt::format("{}", A));
|
||||
}
|
||||
|
||||
#if FMT_USE_STRONG_ENUMS
|
||||
enum TestFixedEnum : short { B };
|
||||
|
||||
TEST(FormatTest, FixedEnum) {
|
||||
EXPECT_EQ("0", fmt::format("{}", B));
|
||||
}
|
||||
#endif
|
||||
|
||||
using buffer_range = fmt::back_insert_range<fmt::internal::buffer>;
|
||||
|
||||
class mock_arg_formatter :
|
||||
|
||||
Reference in New Issue
Block a user