Fix ambiguous instantiation with formatter in fmt/ostream.h (#830)

This commit is contained in:
Victor Zverovich committed 2018-08-11 09:13:54 -07:00
1 parent 0f04ec68a9
commit 8b9fb9fb7e
2 files changed
+12 -4

No files matched your search

+7
View File
@@ -191,3 +191,10 @@ TEST(FormatTest, FormatToN) {
EXPECT_EQ(buffer + 3, result.out);
EXPECT_EQ("xABx", fmt::string_view(buffer, 4));
}
#if FMT_USE_USER_DEFINED_LITERALS
TEST(FormatTest, UDL) {
using namespace fmt::literals;
EXPECT_EQ("{}"_format("test"), "test");
}
#endif