From: Wolfgang Bangerth Date: Thu, 16 Mar 2023 04:02:51 +0000 (-0600) Subject: Do not assign to a temporary. X-Git-Tag: v9.5.0-rc1~468^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de49b8b2b831a4e99280849aebc0b0e036f647da;p=dealii.git Do not assign to a temporary. --- diff --git a/tests/base/scalar_01.cc b/tests/base/scalar_01.cc index 1b51831b33..3ce1b772e4 100644 --- a/tests/base/scalar_01.cc +++ b/tests/base/scalar_01.cc @@ -47,7 +47,11 @@ main() compare(static_cast(t1), 13.); compare(static_cast(t1), 13.); compare((T() = t1), 13.); - compare((T() = 13.), 13.); + { + T t; + t = 13.; + compare(t, 13.); + } compare((t1 == t1), true); compare((t1 == t2), false); compare((t1 != t2), true);