aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/MatrixXpr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/MatrixXpr.h')
-rw-r--r--src/MatrixXpr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/MatrixXpr.h b/src/MatrixXpr.h
index a42f84af6..fe890d16c 100644
--- a/src/MatrixXpr.h
+++ b/src/MatrixXpr.h
@@ -70,6 +70,8 @@ template<typename Content> class MatrixXpr
return *this;
}
+ //special case of the above template operator=. Strangely, g++ 4.1 failed to use
+ //that template when OtherContent == Content
MatrixXpr& operator=(const MatrixXpr& other)
{
assert(rows() == other.rows() && cols() == other.cols());