diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-02-19 23:28:57 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-02-19 23:28:57 +0100 |
commit | 0f4dd15dfc6e18e88cc55f561cf4ee2a772ab350 (patch) | |
tree | de21b2022dac998e96f8cae9da0a6afcda711369 /Eigen/src/Core/GeneralProduct.h | |
parent | 92ceb02c6dd4b2fc375d6c355e0450d705390ca0 (diff) |
Declare const some const variables
Diffstat (limited to 'Eigen/src/Core/GeneralProduct.h')
-rw-r--r-- | Eigen/src/Core/GeneralProduct.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/GeneralProduct.h b/Eigen/src/Core/GeneralProduct.h index 7027130e0..0ecfab449 100644 --- a/Eigen/src/Core/GeneralProduct.h +++ b/Eigen/src/Core/GeneralProduct.h @@ -249,8 +249,8 @@ template<> struct gemv_dense_sense_selector<OnTheRight,ColMajor,true> gemv_static_vector_if<ResScalar,Dest::SizeAtCompileTime,Dest::MaxSizeAtCompileTime,MightCannotUseDest> static_dest; - bool alphaIsCompatible = (!ComplexByReal) || (numext::imag(actualAlpha)==RealScalar(0)); - bool evalToDest = EvalToDestAtCompileTime && alphaIsCompatible; + const bool alphaIsCompatible = (!ComplexByReal) || (numext::imag(actualAlpha)==RealScalar(0)); + const bool evalToDest = EvalToDestAtCompileTime && alphaIsCompatible; RhsScalar compatibleAlpha = get_factor<ResScalar,RhsScalar>::run(actualAlpha); |