mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-10 23:21:47 +08:00
fix compilation issue with gcc < 10 and -std=c++2a
(cherry picked from commit d1bf05639476adbb222e8d09da2faf6ef1ed66f2)
This commit is contained in:
parent
bd72e4a8c4
commit
b5d218d857
@ -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
|
||||
#if EIGEN_COMP_CXXVER < 20 || EIGEN_GNUC_AT_MOST(9,4)
|
||||
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())>>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user