Added user-defined literal for call to format()
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
|
||||
int main() {
|
||||
constexpr auto formatted = format<"Test: {:012.5} {} {:8}">(142.4334, "abcdef", -1234);
|
||||
constexpr auto formatted = "Test: {:012.5} {:6} {:8}"_const_fmt(142.4334, "abcdef", -1234);
|
||||
|
||||
for (const auto& c : formatted)
|
||||
std::cout << c;
|
||||
|
||||
Reference in New Issue
Block a user