From: Wolfgang Bangerth Date: Sat, 6 Feb 2021 17:05:09 +0000 (-0700) Subject: Mark a DEAL_II_CONSTEXPR function as inline. X-Git-Tag: v9.3.0-rc1~495^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11695%2Fhead;p=dealii.git Mark a DEAL_II_CONSTEXPR function as inline. 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'. --- diff --git a/include/deal.II/grid/reference_cell.h b/include/deal.II/grid/reference_cell.h index 309bd16e17..43a88e76d5 100644 --- a/include/deal.II/grid/reference_cell.h +++ b/include/deal.II/grid/reference_cell.h @@ -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.