mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 15:11:43 +01:00
Simplify compile
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user