From: Wolfgang Bangerth Date: Wed, 8 Mar 2023 13:16:23 +0000 (-0700) Subject: Use std::common_type_t<...> instead of typename std::common_type<...>::type. X-Git-Tag: v9.5.0-rc1~500^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87ba7392beb002da269d0c4f8e8d0fe62c5a29f5;p=dealii.git Use std::common_type_t<...> instead of typename std::common_type<...>::type. --- 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