Added recursive implementation of detail::format_args

This commit is contained in:
2021-11-21 17:38:59 +01:00
parent 0d72d35229
commit 8bc8fa835d
3 changed files with 29 additions and 8 deletions

View File

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