<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Aleksejs,<br>
      <br>
      the second template parameter of the Dune::IdSet facade class is
      your implementation:<br>
      <blockquote>Dune::CurvGrid::CurvIdSet<Dune::CurvilinearGrid<3,

        3, double> ><br>
      </blockquote>
      The compiler tells you that you are returning a reference of type<br>
      <blockquote>Dune::CurvGrid::CurvIdSet<const
        Dune::CurvilinearGrid<3, 3, double> > <br>
      </blockquote>
      As you can see there is an additional 'const' qualifier which -
      without knowing your code - should be correct. Have a look at your
      GridFamily traits class and make sure to always pass a 'const
      Grid' type everywhere. For the facade classes to work correctly
      all typedefs must be consistent with this global traits class!<br>
      <br>
      Best<br>
      Christoph<br>
      <br>
      <br>
      On 02/24/2015 03:28 PM, Aleksejs Fomins wrote:<br>
    </div>
    <blockquote cite="mid:54EC8AA7.8080602@lspr.ch" type="cite">
      <pre wrap="">-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Dune,

I am still having problems with compiling my curvgrid.globalIdSet() method

When I look at YaspGrid, the method YaspGrid.globalIdSet() returns
Dune::IdSet<...>
but what is actually returned is
YaspGlobalIdSet<const YaspGrid> : public Dune::IdSet<...>

and that seems to work. Now, when I try to do something similar, I get
the error

error: invalid initialization of reference of type ‘const GlobalIdSet&
{aka const Dune::IdSet<const Dune::CurvilinearGrid<3, 3, double>,
Dune::CurvGrid::CurvIdSet<Dune::CurvilinearGrid<3, 3, double> >,
Dune::CurvilinearGridStorage<double, 3>::IdType>&}’ from expression of
type ‘const IdSetImpl {aka const Dune::CurvGrid::CurvIdSet<const
Dune::CurvilinearGrid<3, 3, double> >}’

const GlobalIdSet &globalIdSet () const  { return globalIdSet_; }


Any hints will be appreciated.

Cheers,
Aleksejs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJU7IqnAAoJEDkNM7UOEwMZsrYQANocOvM/Gz1m9Xj4RCIQjhTg
xJbhtlBt5oL0nkqafgGpMohlQTWUktKwt7qC1qAfgBC3nt+EYcpySyLbIbZ4VXlH
Q3WE8oSGmhp5YSX4KO9fJx8+7qq0IxQCp2/rF8jwwPoFX6dAjcOVSAObyC5b8I4d
6OhEuV1VCGvjAcUvWM5BDF4V5+uEe09jrhGoiPt+8SrR4Rt+aXqJowXJy9Dh9WPM
5mrNiDCyuGr69ivtF7xIwubsTxS+g6FqR9dTcH2TwpsJZ5b2Q31Hx7fGHsinLr97
p1yiMf6i2I9/mjGkATuwHURrG9fj+onXKy5487eEYNLLcjsZNdS5Jn0/HDoTuE0s
YS2V5lfYRac3yYZilSQO7OqCphbi8p7zWFfPegzRoNNXXQ1Hd4AC028N4YP2r05X
8Ts5KG7adWQTpixujzv1WfQXe4w4yEFeDi+IbHqL44FfplSuwHDNkygwlTJZ54Jr
kDttueKoV3ZgaM620f6RDc0psbAXhI0js3eXK0JzsrTRfgAA9aTcZ7iGr202jXqV
t/VxS4uXDPAw4S9m0M+lu71JVlfT91LcnF1RTdDVKFxk10Ltz6XOCkv4dCebj4zl
fJilC9OfZZ1MPVYzv1dMZbBvOxqxo9aO5BoSLF7otBqzFWpOpRiwJUoJImhDdUlP
Jl9LQzK5sv1gEtsypo93
=9n7P
-----END PGP SIGNATURE-----

_______________________________________________
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>