Fix compilation of stableNorm with some expressions as input

This commit is contained in:
Gael Guennebaud
2017-12-15 15:15:37 +01:00
parent 73214c4bd0
commit 06bf1047f9
2 changed files with 11 additions and 1 deletions

View File

@@ -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)