diff options
author | 2010-05-21 01:37:48 +0200 | |
---|---|---|
committer | 2010-05-21 01:37:48 +0200 | |
commit | 17d080edf21f316ed82abc24cd068f002f2d7838 (patch) | |
tree | ab5ef7f7577e9afb033a1afa8f89f2b826d03d91 /Eigen | |
parent | b9bcd93ddcc13d2e60df25dfe97f62979adfd84a (diff) |
clang shocks on this.
According to people on #llvm, this is indeed not allowed by c++ standard:
[01:33] <coppro> what good would mutable do on a reference?
[01:33] <dgregor> orzel: gcc is wrong to allow "mutable" on references
[01:33] <coppro> just remove mutable; it won't damage the code at all
[01:34] <dgregor> "The mutable specifier can be applied only to names of
class data members (9.2) and cannot be applied to
[01:34] <dgregor> names declared const or static, and cannot be applied to
reference members."
[01:34] <coppro> constness is not passed from an object to the referents of
its members anyways
Diffstat (limited to 'Eigen')
-rw-r--r-- | Eigen/src/Core/products/GeneralMatrixMatrix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/products/GeneralMatrixMatrix.h b/Eigen/src/Core/products/GeneralMatrixMatrix.h index 2ab773e64..7bb26c1ab 100644 --- a/Eigen/src/Core/products/GeneralMatrixMatrix.h +++ b/Eigen/src/Core/products/GeneralMatrixMatrix.h @@ -245,7 +245,7 @@ struct ei_gemm_functor protected: const Lhs& m_lhs; const Rhs& m_rhs; - mutable Dest& m_dest; + Dest& m_dest; Scalar m_actualAlpha; }; |