]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not use 'static const' variables in header files. Use 'constexpr' instead. 18104/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 8 Feb 2025 04:20:34 +0000 (21:20 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 9 Feb 2025 19:48:31 +0000 (12:48 -0700)
include/deal.II/lac/lapack_support.h

index 1bc422f0b508a0f38a687f019f4872afc38b7b5e..f20ae7c5b340f90f8ac3c8dedbfea2d957a82686 100644 (file)
@@ -149,39 +149,39 @@ namespace LAPACKSupport
   /**
    * Character constant.
    */
-  static const char A = 'A';
+  constexpr char A = 'A';
   /**
    * Character constant.
    */
-  static const char N = 'N';
+  constexpr char N = 'N';
   /**
    * Character constant.
    */
-  static const char O = 'O';
+  constexpr char O = 'O';
   /**
    * Character constant.
    */
-  static const char T = 'T';
+  constexpr char T = 'T';
   /**
    * Character constant.
    */
-  static const char U = 'U';
+  constexpr char U = 'U';
   /**
    * Character constant.
    */
-  static const char L = 'L';
+  constexpr char L = 'L';
   /**
    * Character constant.
    */
-  static const char V = 'V';
+  constexpr char V = 'V';
   /**
    * Integer constant.
    */
-  static const types::blas_int zero = 0;
+  constexpr types::blas_int zero = 0;
   /**
    * Integer constant.
    */
-  static const types::blas_int one = 1;
+  constexpr types::blas_int one = 1;
 
   /**
    * A LAPACK function returned an error code.

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.