add cast<newtype>() function to casts the scalars to another type.

This commit is contained in:
Benoit Jacob
2007-10-19 14:46:08 +00:00
parent d6f26dc8eb
commit 49c78643da
6 changed files with 77 additions and 3 deletions

View File

@@ -42,7 +42,8 @@ template<typename MatrixType> class Conjugate
Conjugate(const Conjugate& other)
: m_matrix(other.m_matrix) {}
EI_INHERIT_ASSIGNMENT_OPERATORS(Conjugate)
// assignments are illegal but we still want to intercept them and get clean compile errors
EI_INHERIT_ASSIGNMENT_OPERATORS(Conjugate)
private:
const Conjugate& _ref() const { return *this; }