diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-12-15 15:15:37 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-12-15 15:15:37 +0100 |
commit | 06bf1047f99afec61062e188ec4e68efbf203d86 (patch) | |
tree | 051852db39b7512a5959c3a87e91879fce6b0ef2 /Eigen/src/Core/StableNorm.h | |
parent | 73214c4bd06108ee3a26204acbbda205a40131bc (diff) |
Fix compilation of stableNorm with some expressions as input
Diffstat (limited to 'Eigen/src/Core/StableNorm.h')
-rw-r--r-- | Eigen/src/Core/StableNorm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/StableNorm.h b/Eigen/src/Core/StableNorm.h index 4ea598ba8..e0e7a0c8f 100644 --- a/Eigen/src/Core/StableNorm.h +++ b/Eigen/src/Core/StableNorm.h @@ -165,7 +165,7 @@ MatrixBase<Derived>::stableNorm() const typedef typename internal::nested_eval<Derived,2>::type DerivedCopy; typedef typename internal::remove_all<DerivedCopy>::type DerivedCopyClean; - DerivedCopy copy(derived()); + const DerivedCopy copy(derived()); enum { CanAlign = ( (int(DerivedCopyClean::Flags)&DirectAccessBit) |