Skip to content
Snippets Groups Projects
Commit a3cedf11 authored by Thimo Neubauer's avatar Thimo Neubauer
Browse files

added const-asImp() for entities

[[Imported from SVN: r1233]]
parent a859ec49
No related branches found
No related tags found
No related merge requests found
......@@ -828,6 +828,7 @@ namespace Dune {
private:
//! Barton-Nackman trick
EntityImp<codim,dim,dimworld>& asImp () {return static_cast<EntityImp<codim,dim,dimworld>&>(*this);}
const EntityImp<codim,dim,dimworld>& asImp () const {return static_cast<const EntityImp<codim,dim,dimworld>&>(*this);}
}; // end EntityDefault
......@@ -1028,6 +1029,7 @@ namespace Dune {
private:
//! Barton-Nackman trick
EntityImp<0,dim,dimworld>& asImp () {return static_cast<EntityImp<0,dim,dimworld>&>(*this);}
const EntityImp<0,dim,dimworld>& asImp () const {return static_cast<const EntityImp<0,dim,dimworld>&>(*this);}
};
// end EntityDefault
//******************************************************************************
......
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