<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi,<br>
<br>
the best thing I could come up with for dune-fem is to use a
compatibility method that always returns an entity:<br>
<blockquote>template< class Grid, class Implementation ><br>
typename Dune::EntityPointer< Grid, Implementation
>::Entity<br>
make_entity ( const Dune::EntityPointer< Grid, Implementation
> &entityPointer )<br>
{<br>
return *entityPointer;<br>
}<br>
<br>
template< int codim, int dim, class Grid, template< int,
int, class > class Implementation ><br>
typename Dune::Entity< codim, dim, Grid, Implementation ><br>
make_entity ( Dune::Entity< codim, dim, Grid, Implementation
> entity )<br>
{<br>
return std::move( entity );<br>
}<br>
</blockquote>
Then, the statement<br>
<blockquote>Intersection::Entity entity = make_entity(
intersection.outside() );<br>
</blockquote>
will not give raise to compiler warnings no matter which grid is
used. After the 2.4 release you can easily deprecate the
compatibility method and find and remove all its occurrences.<br>
<br>
Best<br>
Christoph<br>
<br>
On 04/16/2015 11:45 AM, Christian Engwer wrote:<br>
</div>
<blockquote cite="mid:20150416094549.GB28068@sansibar.localdomain"
type="cite">
<pre wrap="">Dear all,
I wanted to get rid of deprecation warning in PDELab and observed and
replace things like
intersectionIterator->outside()->type()
by
intersectionIterator->outside().type()
Now the problem occures, that for most of the code I have a working
version without deprecation warnings, but when using ALUgrid, the code
breaks, as ALUGrid is not updated yet. This is a general issue,
because it blocks the upgrade path. How shall we proceed? One option
would be to extend the EntityPointer-wrapper such that we can call all
methods of the entity by forwarding the call internally. Are there
alternatives? Or is there an alternative upgrade path?
Ciao
Christian
_______________________________________________
Dune mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dune@dune-project.org">Dune@dune-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.dune-project.org/mailman/listinfo/dune">http://lists.dune-project.org/mailman/listinfo/dune</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<title></title>
<font color="#666666"><small>Christoph Gersbacher</small><small>
<a
href="mailto:christoph.gersbacher@mathematik.uni-freiburg.de"><font
color="#3333ff"><christoph.gersbacher@mathematik.uni-freiburg.de></font></a></small><br>
</font>
<div class="moz-signature">
<div class="moz-signature"><font color="#666666"><small>Abteilung
für
Angewandte Mathematik
</small><br>
</font><font color="#666666"><small>Albert-Ludwigs-Universität
Freiburg
</small><br>
</font><font color="#666666"><small>Hermann-Herder-Str. 10
</small><br>
</font><font color="#666666"><small>D-79104 Freiburg im
Breisgau
</small><br>
</font><font color="#666666"><small>Tel.: +49 (0)761 / 203
5645
</small><br>
</font><font color="#666666"><small>Fax: +49 (0)761 / 203 5632</small></font>
</div>
</div>
</div>
</body>
</html>