Add support for more formattable types in ranges
This commit is contained in:
1 parent
4fd9a00f35
commit
60cd5ea3f2
3 files changed
+16
-8
No files matched your search
+8
-1
@@ -190,7 +190,14 @@ TEST(ranges_test, range) {
|
||||
EXPECT_EQ(fmt::format("{}", z), "[0, 0, 0]");
|
||||
}
|
||||
|
||||
#if !FMT_MSC_VER || FMT_MSC_VER >= 1927
|
||||
enum class test_enum { foo };
|
||||
|
||||
TEST(ranges_test, enum_range) {
|
||||
auto v = std::vector<test_enum>{test_enum::foo};
|
||||
EXPECT_EQ(fmt::format("{}", v), "[0]");
|
||||
}
|
||||
|
||||
#if !FMT_MSC_VER
|
||||
struct unformattable {};
|
||||
|
||||
TEST(ranges_test, unformattable_range) {
|
||||
|
||||
Reference in new issue
Block a user