From: Wolfgang Bangerth Date: Wed, 17 Jan 2024 02:56:03 +0000 (-0700) Subject: Make a function 'constexpr'. X-Git-Tag: relicensing~145^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3f03539a24287941751e61888d2e4ca3780af15;p=dealii.git Make a function 'constexpr'. --- diff --git a/include/deal.II/base/numbers.h b/include/deal.II/base/numbers.h index e0dcfd6184..85caa72642 100644 --- a/include/deal.II/base/numbers.h +++ b/include/deal.II/base/numbers.h @@ -341,7 +341,7 @@ namespace numbers * of @p value_1. */ template - bool + constexpr bool values_are_not_equal(const Number1 &value_1, const Number2 &value_2); /** @@ -925,7 +925,7 @@ namespace numbers template - inline bool + inline constexpr bool values_are_not_equal(const Number1 &value_1, const Number2 &value_2) { return !(values_are_equal(value_1, value_2));