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

there was still a problem with deprecated warning :-(

[[Imported from SVN: r2871]]
parent 4f89b638
Branches
Tags
No related merge requests found
......@@ -330,8 +330,9 @@ namespace Dune
This does the same as <code>entity<cc>(i).index()</code>, but it is
usually a lot faster.
*/
template <int cc> int subIndex ( int i ) const DUNE_DEPRECATED
template <int cc> int subIndex ( int i ) const
{
this->index(); // Just to force a deprecated warning
return realEntity.subIndex<cc>(i);
}
......@@ -752,8 +753,9 @@ namespace Dune
* Default implementation for access to subIndex via interface method entity
* default is to return the index of the sub entity, is very slow, but works
*/
template <int cc> int subIndex ( int i ) const DUNE_DEPRECATED
template <int cc> int subIndex ( int i ) const
{
this->index(); // Just to force a deprecated warning
return (asImp().template entity<cc>(i))->index();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment