Started implementing zero padding

This commit is contained in:
2021-11-21 20:01:00 +01:00
parent f2de0773ed
commit ad737f1c73
3 changed files with 32 additions and 24 deletions

View File

@@ -12,7 +12,7 @@ public:
int main() {
const auto formatted = format<"Test: {:8.3} {:6.3} {:05.2}">(1432.4334, "abc", 1234);
constexpr auto formatted = format<"Test: {} {} {:0}">(142.4334, "abc", 1234);
for (const auto& c : formatted)
std::cout << c;