clarify the situation with EI_INHERIT_ASSIGNMENT_OPERATORS

This commit is contained in:
Benoit Jacob
2007-10-15 06:11:59 +00:00
parent 884a718b0a
commit d6f26dc8eb
9 changed files with 15 additions and 1 deletions

View File

@@ -42,6 +42,9 @@ template<typename MatrixType> class Identity
assert(RowsAtCompileTime == ColsAtCompileTime);
}
// assignments are illegal but we still want to intercept them and get clean compile errors
EI_INHERIT_ASSIGNMENT_OPERATORS(Identity)
private:
Identity& _ref() { return *this; }
const Identity& _ref() const { return *this; }