const-qualify template parameters representing const arguments to expressions.

needed to fix docs compile issue.
This commit is contained in:
Benoit Jacob
2011-01-24 08:27:06 -05:00
parent 5331fa3033
commit c3a4f6b5c5
11 changed files with 69 additions and 69 deletions

View File

@@ -342,10 +342,10 @@
#define EIGEN_MAKE_CWISE_BINARY_OP(METHOD,FUNCTOR) \
template<typename OtherDerived> \
EIGEN_STRONG_INLINE const CwiseBinaryOp<FUNCTOR<Scalar>, Derived, OtherDerived> \
EIGEN_STRONG_INLINE const CwiseBinaryOp<FUNCTOR<Scalar>, const Derived, const OtherDerived> \
METHOD(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const \
{ \
return CwiseBinaryOp<FUNCTOR<Scalar>, Derived, OtherDerived>(derived(), other.derived()); \
return CwiseBinaryOp<FUNCTOR<Scalar>, const Derived, const OtherDerived>(derived(), other.derived()); \
}
// the expression type of a cwise product
@@ -355,8 +355,8 @@
typename internal::traits<LHS>::Scalar, \
typename internal::traits<RHS>::Scalar \
>, \
LHS, \
RHS \
const LHS, \
const RHS \
>
#endif // EIGEN_MACROS_H