mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
clarify the situation with EI_INHERIT_ASSIGNMENT_OPERATORS
This commit is contained in:
@@ -41,6 +41,9 @@ template<typename MatrixType> class Zero
|
||||
assert(rows > 0 && cols > 0);
|
||||
}
|
||||
|
||||
// assignments are illegal but we still want to intercept them and get clean compile errors
|
||||
EI_INHERIT_ASSIGNMENT_OPERATORS(Zero)
|
||||
|
||||
private:
|
||||
const Zero& _ref() const { return *this; }
|
||||
int _rows() const { return m_rows; }
|
||||
|
||||
Reference in New Issue
Block a user