Inherit operator+= and -= with 'using' kkeyword

This commit is contained in:
Gael Guennebaud
2015-06-24 17:49:20 +02:00
parent 53a61a067b
commit 02db7c9bc6
2 changed files with 3 additions and 7 deletions

View File

@@ -97,8 +97,8 @@ class SparseMatrix
using Base::isCompressed;
using Base::nonZeros;
_EIGEN_SPARSE_PUBLIC_INTERFACE(SparseMatrix)
EIGEN_SPARSE_INHERIT_ASSIGNMENT_OPERATOR(SparseMatrix, +=)
EIGEN_SPARSE_INHERIT_ASSIGNMENT_OPERATOR(SparseMatrix, -=)
using Base::operator+=;
using Base::operator-=;
typedef MappedSparseMatrix<Scalar,Flags> Map;
typedef Diagonal<SparseMatrix> DiagonalReturnType;