remove EIGEN_REF_TO_TEMPORARY, clarify docs

This commit is contained in:
Benoit Jacob
2010-12-25 16:45:25 -05:00
parent 75b7d98665
commit 86d3711fb7
7 changed files with 12 additions and 19 deletions

View File

@@ -526,7 +526,7 @@ class PlainObjectBase : public internal::dense_xpr_base<Derived>::type
* data pointers.
*/
template<typename OtherDerived>
void _swap(DenseBase<OtherDerived> EIGEN_REF_TO_TEMPORARY other)
void _swap(DenseBase<OtherDerived> const & other)
{
enum { SwapPointers = internal::is_same<Derived, OtherDerived>::value && Base::SizeAtCompileTime==Dynamic };
internal::matrix_swap_impl<Derived, OtherDerived, bool(SwapPointers)>::run(this->derived(), other.const_cast_derived());