From 293315d221ddb48f2820050915faa6f8eba5122b Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Sun, 22 Jan 2023 13:59:56 +0100 Subject: [PATCH] [fmt] Expose function in Dumux::Fmt for variable format strings In C++20 mode passing non-constexpr format string yields a compiler error. In that case, we have to use vformat(varstr, std::make_format_args(a, b, c...)) --- dumux/io/format.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dumux/io/format.hh b/dumux/io/format.hh index bccf607c1d..dcdd10d04d 100644 --- a/dumux/io/format.hh +++ b/dumux/io/format.hh @@ -40,6 +40,9 @@ using Dumux::Detail::fmt::format; using Dumux::Detail::fmt::format_to; using Dumux::Detail::fmt::format_to_n; using Dumux::Detail::fmt::formatted_size; +using Dumux::Detail::fmt::vformat; +using Dumux::Detail::fmt::vformat_to; +using Dumux::Detail::fmt::make_format_args; } // end namespace Dumux::Fmt -- GitLab