Skip to content
Snippets Groups Projects
Commit 158b6343 authored by Tobias Malkmus's avatar Tobias Malkmus Committed by Christian Engwer
Browse files

[densematrix] fix densematrix column iterator type for row_reference != row_type&

Note remove_reference is necessary, because you cannot extract the iterator type from
row_reference directly in case: row_reference == row_type&
parent 90df0c82
Branches
Tags
No related merge requests found
......@@ -251,7 +251,7 @@ namespace Dune
//! rename the iterators for easier access
typedef Iterator RowIterator;
//! rename the iterators for easier access
typedef typename row_type::Iterator ColIterator;
typedef typename remove_reference<row_reference>::type::Iterator ColIterator;
//! begin iterator
Iterator begin ()
......@@ -286,7 +286,7 @@ namespace Dune
//! rename the iterators for easier access
typedef ConstIterator ConstRowIterator;
//! rename the iterators for easier access
typedef typename row_type::ConstIterator ConstColIterator;
typedef typename remove_reference<const_row_reference>::type::ConstIterator ConstColIterator;
//! begin iterator
ConstIterator begin () const
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment