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

This commit is contained in:
Victor Zverovich
2018-08-11 09:13:54 -07:00
parent 0f04ec68a9
commit 8b9fb9fb7e
2 changed files with 12 additions and 4 deletions

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