]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make a function 'constexpr'.
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 17 Jan 2024 02:56:03 +0000 (19:56 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 18 Jan 2024 15:40:06 +0000 (08:40 -0700)
include/deal.II/base/numbers.h

index e0dcfd618450c81a2d424f77d73fe4f4f860496f..85caa726428ef2bc97bba96883948412ac8d2f9a 100644 (file)
@@ -341,7 +341,7 @@ namespace numbers
    * of @p value_1.
    */
   template <typename Number1, typename Number2>
-  bool
+  constexpr bool
   values_are_not_equal(const Number1 &value_1, const Number2 &value_2);
 
   /**
@@ -925,7 +925,7 @@ namespace numbers
 
 
   template <typename Number1, typename Number2>
-  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));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.