inline constexpr bool
compare_for_equality(const T &t, const U &u)
{
- using common_type = typename std::common_type<T, U>::type;
+ using common_type = std::common_type_t<T, U>;
return static_cast<common_type>(t) == static_cast<common_type>(u);
}
inline constexpr bool
compare_less_than(const T &t, const U &u)
{
- using common_type = typename std::common_type<T, U>::type;
+ using common_type = std::common_type_t<T, U>;
return (static_cast<common_type>(t) < static_cast<common_type>(u));
}
} // namespace internals
Assert( \
::dealii::deal_II_exceptions::internals::compare_less_than(index, range), \
dealii::ExcIndexRangeType<typename ::dealii::internal::argument_type<void( \
- typename std::common_type<decltype(index), decltype(range)>::type)>:: \
- type>((index), 0, (range)))
+ std::common_type_t<decltype(index), decltype(range)>)>::type>((index), \
+ 0, \
+ (range)))
/**
* An assertion that checks whether a number is finite or not. We explicitly