From 6c3206152a1388a3cf43d5eec6b5c4700ec2ca02 Mon Sep 17 00:00:00 2001 From: Yann Billeter Date: Mon, 25 Oct 2021 10:39:25 +0200 Subject: [PATCH] fix(CommaInitializer): pass dims at compile-time --- Eigen/src/Core/CommaInitializer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/CommaInitializer.h b/Eigen/src/Core/CommaInitializer.h index 5c89d14e4..7c2eea8a6 100644 --- a/Eigen/src/Core/CommaInitializer.h +++ b/Eigen/src/Core/CommaInitializer.h @@ -47,7 +47,7 @@ struct CommaInitializer { eigen_assert(m_xpr.rows() >= other.rows() && m_xpr.cols() >= other.cols() && "Cannot comma-initialize a 0x0 matrix (operator<<)"); - m_xpr.block(0, 0, other.rows(), other.cols()) = other; + m_xpr.template block(0, 0, other.rows(), other.cols()) = other; } /* Copy/Move constructor which transfers ownership. This is crucial in