mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-20 11:56:17 +08:00
Worakound gcc 4.7 issue in c++11.
This commit is contained in:
parent
4a4a72951f
commit
6486d4fc95
@ -14,7 +14,7 @@ namespace Eigen {
|
|||||||
|
|
||||||
namespace internal {
|
namespace internal {
|
||||||
|
|
||||||
#if !EIGEN_HAS_CXX11
|
#if (!EIGEN_HAS_CXX11) || !((!EIGEN_COMP_GNUC) || EIGEN_COMP_GNUC>=48)
|
||||||
template<typename T> struct aseq_negate {};
|
template<typename T> struct aseq_negate {};
|
||||||
|
|
||||||
template<> struct aseq_negate<Index> {
|
template<> struct aseq_negate<Index> {
|
||||||
@ -138,7 +138,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
#if EIGEN_HAS_CXX11
|
#if EIGEN_HAS_CXX11 && ((!EIGEN_COMP_GNUC) || EIGEN_COMP_GNUC>=48)
|
||||||
auto reverse() const -> decltype(Eigen::seqN(m_first+(m_size+fix<-1>())*m_incr,m_size,-m_incr)) {
|
auto reverse() const -> decltype(Eigen::seqN(m_first+(m_size+fix<-1>())*m_incr,m_size,-m_incr)) {
|
||||||
return seqN(m_first+(m_size+fix<-1>())*m_incr,m_size,-m_incr);
|
return seqN(m_first+(m_size+fix<-1>())*m_incr,m_size,-m_incr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user