Skip to content
Snippets Groups Projects
Commit 565d7f4d authored by Christian Engwer's avatar Christian Engwer
Browse files

- Iterator::index() should be const

- fixed FlatIterator::equals(...)

[[Imported from SVN: r2461]]
parent 3e0fd72a
Branches
Tags
No related merge requests found
......@@ -414,7 +414,7 @@ namespace Dune {
}
//! return index
DifferenceType index ()
DifferenceType index () const
{
return this->position_;
}
......@@ -467,14 +467,14 @@ namespace Dune {
}
bool equals (const FlatIterator & fit) const
{
return fit.it == it;
return fit.it == it && fit.bit == bit;
}
field_type& dereference() const
{
return *bit;
}
//! return index
DifferenceType index ()
DifferenceType index () const
{
return bit.index();
}
......@@ -510,7 +510,7 @@ namespace Dune {
return *it;
}
//! return index
DifferenceType index ()
DifferenceType index () const
{
return it.index();
}
......@@ -544,7 +544,7 @@ namespace Dune {
return *it;
}
//! return index
DifferenceType index ()
DifferenceType index () const
{
return it.index();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment