Simplify compile

This commit is contained in:
Victor Zverovich committed 2019-07-26 07:58:19 +03:00
1 parent 3730b4f039
commit bbf0bada33
2 files changed
+5 -19

No files matched your search

+1 -1
View File
@@ -476,7 +476,7 @@ TEST(PrepareTest, CopyPreparedFormat_InternalStringViewsAreNotInvalidated) {
}
TEST(PrepareTest, ReusedPreparedFormatType) {
typedef fmt::prepared_format<std::string, int>::type prepared_format;
using prepared_format = fmt::internal::prepared_format_t<std::string, int>;
prepared_format prepared = fmt::compile<prepared_format>("The {} is {}.");
EXPECT_EQ("The answer is 42.", prepared.format("answer", 42));