From dc6b6349162d49864542fcd3c178efa4ce250512 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 6 Feb 2021 10:05:09 -0700 Subject: [PATCH] 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'. --- include/deal.II/grid/reference_cell.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.39.5