diff --git a/SimoxUtility/math/regression/linear.hpp b/SimoxUtility/math/regression/linear.hpp index a082d17c543f1a441b7bd15aa092e3e43b8bb442..3b878cbf98565c5b98e48696f65152695ed8f2da 100644 --- a/SimoxUtility/math/regression/linear.hpp +++ b/SimoxUtility/math/regression/linear.hpp @@ -48,7 +48,7 @@ namespace simox::math { public: - static const int Dim = _Dim; + static constexpr int Dim = _Dim; using FloatT = _FloatT; using VectorT = typename Eigen::Matrix<FloatT, Dim, 1>; using CoefficientsMatrixT = typename Eigen::Matrix<FloatT, Dim, 2>;