aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Swap.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-04-03 11:10:17 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-04-03 11:10:17 +0000
commitd1a29d6319d6919e0c3d1c624ad45d8202be1942 (patch)
treeb9882a823c7d08819037d341f7e61971304eeadf /Eigen/src/Core/Swap.h
parente74fbfb2bc13dee268950361a957aea73bcefc21 (diff)
-new: recursive costs system, useful to determine automatically
when to evaluate arguments and when to meta-unroll. -use it in Product to determine when to eval args. not yet used to determine when to unroll. for now, not used anywhere else but that'll follow. -fix badness of my last commit
Diffstat (limited to 'Eigen/src/Core/Swap.h')
-rw-r--r--Eigen/src/Core/Swap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/Swap.h b/Eigen/src/Core/Swap.h
index db096e6f2..cffdb1cc6 100644
--- a/Eigen/src/Core/Swap.h
+++ b/Eigen/src/Core/Swap.h
@@ -63,7 +63,7 @@ void MatrixBase<Derived>::swap(const MatrixBase<OtherDerived>& other)
}
else // SizeAtCompileTime != Dynamic
{
- typename Eval<Derived>::MatrixType buf(*this);
+ typename Derived::Eval buf(*this);
*this = other;
*_other = buf;
}