Skip to content
Snippets Groups Projects
Commit f86f4fcf authored by Markus Blatt's avatar Markus Blatt
Browse files

BugFix: methods should be const!

[[Imported from SVN: r5556]]
parent 6aa60bbb
No related branches found
No related tags found
No related merge requests found
......@@ -513,7 +513,7 @@ namespace Dune
return *static_cast<DerivedType *>(this);
}
DerivedType operator+(DifferenceType n)
DerivedType operator+(DifferenceType n) const
{
DerivedType tmp(static_cast<DerivedType const&>(*this));
tmp.advance(n);
......@@ -542,7 +542,7 @@ namespace Dune
return *static_cast<DerivedType *>(this);
}
DerivedType operator-(DifferenceType n)
DerivedType operator-(DifferenceType n) const
{
DerivedType tmp(static_cast<DerivedType const&>(*this));
tmp.advance(-n);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment