mirror of
https://github.com/fmtlib/fmt.git
synced 2026-05-04 11:44:08 +02:00
Implement printing of values that are convertible to int such as enums
This commit is contained in:
@@ -832,3 +832,8 @@ TEST(UtilTest, ReportWindowsError) {
|
||||
}
|
||||
|
||||
#endif // _WIN32
|
||||
|
||||
TEST(UtilTest, IsConvertibleToInt) {
|
||||
EXPECT_TRUE(fmt::internal::IsConvertibleToInt<char>::value);
|
||||
EXPECT_FALSE(fmt::internal::IsConvertibleToInt<const char *>::value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user