Skip to content
Snippets Groups Projects
Verified Commit 12e8fde2 authored by Christoph Lehmann's avatar Christoph Lehmann Committed by Lars Bilke
Browse files

[BL] Use runtime-checked formatting

parent 5c713b1c
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,8 @@ bool substituteKeyword(std::string& result, std::string& parenthesized_string,
std::string const generated_fmt_string =
"{" + precision_specification +
type_specification[std::type_index(typeid(data))] + "}";
result = result.substr(0, begin) + fmt::format(generated_fmt_string, data) +
result = result.substr(0, begin) +
fmt::vformat(generated_fmt_string, fmt::make_format_args(data)) +
result.substr(end + 1, result.length() - (end + 1));
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment