Made format() constexpr

This commit is contained in:
2021-11-21 18:59:35 +01:00
parent 53091a30cd
commit ce2006694e
2 changed files with 2 additions and 2 deletions

View File

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