From 75b7d98665dd144c44d7a113c6613f5f998be626 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 22 Dec 2010 17:45:37 -0500 Subject: bug #54 - really fix const correctness except in Sparse --- Eigen/src/Core/SelfAdjointView.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Eigen/src/Core/SelfAdjointView.h') diff --git a/Eigen/src/Core/SelfAdjointView.h b/Eigen/src/Core/SelfAdjointView.h index dd1757aea..5d8468884 100644 --- a/Eigen/src/Core/SelfAdjointView.h +++ b/Eigen/src/Core/SelfAdjointView.h @@ -282,14 +282,16 @@ struct triangular_assignment_selector template -const SelfAdjointView MatrixBase::selfadjointView() const +typename MatrixBase::template ConstSelfAdjointViewReturnType::Type +MatrixBase::selfadjointView() const { return derived(); } template template -SelfAdjointView MatrixBase::selfadjointView() +typename MatrixBase::template SelfAdjointViewReturnType::Type +MatrixBase::selfadjointView() { return derived(); } -- cgit v1.2.3