From f5b98a99c8cb0be380af2c0047d227f83acbd7a5 Mon Sep 17 00:00:00 2001 From: Max Kahnt <max.kahnt@fu-berlin.de> Date: Mon, 15 Dec 2014 16:09:35 +0100 Subject: [PATCH] Fix static_cast to const ref. --- dune/matrix-vector/singlenonzerocolumnmatrix.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dune/matrix-vector/singlenonzerocolumnmatrix.hh b/dune/matrix-vector/singlenonzerocolumnmatrix.hh index a2c1c15..7e3ffc3 100644 --- a/dune/matrix-vector/singlenonzerocolumnmatrix.hh +++ b/dune/matrix-vector/singlenonzerocolumnmatrix.hh @@ -96,7 +96,7 @@ public: const_row_reference operator[] (size_type rowIndex) const { - return const_row_reference(&(static_cast<K&>(nonZeroColumn_[rowIndex])), columnIndex_); + return const_row_reference(&(static_cast<const K&>(nonZeroColumn_[rowIndex])), columnIndex_); } size_type nonZeroColumnIndex() const -- GitLab