Revert "fix compilation issue with gcc < 10 and -std=c++2a"

This reverts commit b5d218d8574c665d7d4ac3ac21f7bf15b8dabbfa
This commit is contained in:
Antonio Sánchez 2022-01-18 16:08:37 +00:00
parent b5d218d857
commit 3e71c621c9

View File

@ -477,7 +477,7 @@ template<typename T, std::size_t N> struct array_size<std::array<T,N> > {
*
* For C++20, this function just forwards to `std::ssize`, or any ADL discoverable `ssize` function.
*/
#if EIGEN_COMP_CXXVER < 20 || EIGEN_GNUC_AT_MOST(9,4)
#if EIGEN_COMP_CXXVER < 20
template <typename T>
EIGEN_CONSTEXPR auto index_list_size(const T& x) {
using R = std::common_type_t<std::ptrdiff_t, std::make_signed_t<decltype(x.size())>>;