Implement printing of values that are convertible to int such as enums

This commit is contained in:
Victor Zverovich
2015-03-10 07:53:46 -07:00
parent 08d759c425
commit 5821aec7b9
3 changed files with 43 additions and 2 deletions
+5
View File
@@ -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);
}