]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark a DEAL_II_CONSTEXPR function as inline. 11695/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 6 Feb 2021 17:05:09 +0000 (10:05 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 6 Feb 2021 17:05:09 +0000 (10:05 -0700)
This is necessary for those cases where DEAL_II_CONSTEXPR expands to nothing
because of a compiler bug. In all other cases, the 'inline' is redundant because
'constexpr' functions are automatically 'inline'.

include/deal.II/grid/reference_cell.h

index 309bd16e17c8c799b58bae3e9a808fc06d6aaa9d..43a88e76d5f02be63ac968c6df80bd1993847ebc 100644 (file)
@@ -342,8 +342,8 @@ namespace internal
 {
   namespace ReferenceCell
   {
-    DEAL_II_CONSTEXPR dealii::ReferenceCell
-                      make_reference_cell_from_int(const std::uint8_t kind)
+    inline DEAL_II_CONSTEXPR dealii::ReferenceCell
+                             make_reference_cell_from_int(const std::uint8_t kind)
     {
       // Make sure these are the only indices from which objects can be
       // created.

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.