mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Eval is read-only, don't generate any assignment operator
This commit is contained in:
parent
2c656c51e6
commit
a32690a222
@ -26,10 +26,10 @@
|
|||||||
#ifndef EIGEN_EVAL_H
|
#ifndef EIGEN_EVAL_H
|
||||||
#define EIGEN_EVAL_H
|
#define EIGEN_EVAL_H
|
||||||
|
|
||||||
template<typename Expression> class Eval
|
template<typename Expression> class Eval : NoOperatorEquals,
|
||||||
: public Matrix< typename Expression::Scalar,
|
public Matrix< typename Expression::Scalar,
|
||||||
Expression::RowsAtCompileTime,
|
Expression::RowsAtCompileTime,
|
||||||
Expression::ColsAtCompileTime >
|
Expression::ColsAtCompileTime >
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef typename Expression::Scalar Scalar;
|
typedef typename Expression::Scalar Scalar;
|
||||||
@ -37,8 +37,6 @@ template<typename Expression> class Eval
|
|||||||
typedef Expression Base;
|
typedef Expression Base;
|
||||||
friend class MatrixBase<Scalar, Expression>;
|
friend class MatrixBase<Scalar, Expression>;
|
||||||
|
|
||||||
EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Eval)
|
|
||||||
|
|
||||||
Eval(const Expression& expression) : MatrixType(expression) {}
|
Eval(const Expression& expression) : MatrixType(expression) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user