From a50d71936465c26abc9093ed3b87059fe72aa711 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Fri, 30 Jun 2023 06:39:46 +0200 Subject: [PATCH] Fix brace initialization, #498 --- include/sqlpp11/detail/float_safe_ostringstream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sqlpp11/detail/float_safe_ostringstream.h b/include/sqlpp11/detail/float_safe_ostringstream.h index 05a0ea1f..79bdfe79 100644 --- a/include/sqlpp11/detail/float_safe_ostringstream.h +++ b/include/sqlpp11/detail/float_safe_ostringstream.h @@ -54,7 +54,7 @@ namespace sqlpp template void operator()(std::ostringstream& os, U&& x) const { - auto const old_precision{os.precision(std::numeric_limits::max_digits10)}; + auto const old_precision = os.precision(std::numeric_limits::max_digits10); os << std::forward(x); os.precision(old_precision); }