From 87ba7392beb002da269d0c4f8e8d0fe62c5a29f5 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 8 Mar 2023 06:16:23 -0700 Subject: [PATCH] Use std::common_type_t<...> instead of typename std::common_type<...>::type. --- include/deal.II/base/exceptions.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 2f7416e4f2..b2739df6cc 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -1712,7 +1712,7 @@ namespace deal_II_exceptions inline constexpr bool compare_for_equality(const T &t, const U &u) { - using common_type = typename std::common_type::type; + using common_type = std::common_type_t; return static_cast(t) == static_cast(u); } @@ -1726,7 +1726,7 @@ namespace deal_II_exceptions inline constexpr bool compare_less_than(const T &t, const U &u) { - using common_type = typename std::common_type::type; + using common_type = std::common_type_t; return (static_cast(t) < static_cast(u)); } } // namespace internals @@ -1822,8 +1822,9 @@ namespace internal Assert( \ ::dealii::deal_II_exceptions::internals::compare_less_than(index, range), \ dealii::ExcIndexRangeType::type)>:: \ - type>((index), 0, (range))) + std::common_type_t)>::type>((index), \ + 0, \ + (range))) /** * An assertion that checks whether a number is finite or not. We explicitly -- 2.39.5