Added format_arg() for integral and floating point types and char arrays

This commit is contained in:
2021-11-21 18:52:07 +01:00
parent 6afb5bea87
commit 53091a30cd
2 changed files with 53 additions and 22 deletions

View File

@@ -12,9 +12,7 @@ public:
int main() {
constexpr detail::ConstString s{"Test: {:3.8f} {:02.5} {:05.2}"};
const auto formatted = format<s>(3.4, "abc", 8.98754);
const auto formatted = format<"Test: {:3.8f} {:5.5} {:05.2}">(3.4, "abc", 1234);
for (const auto& c : formatted)
std::cout << c;