[Dune] [#454] cast from GenericIterator to const GenericIterator broken

Dune dune at dune-project.org
Fri Nov 7 13:42:49 CET 2008


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#454 - cast from GenericIterator to const GenericIterator broken
User who did this - Christian Engwer (christi)

----------
I found out what the problem is, but I'm not sure whether this is a bug in g++ or what...

I assumed:
  int x;
  typedef int& rint;
  const rint cri1 = x; // assumption cri1 is of type const int &, but this is wrong.
  remove_const<const int &> ri1 = x; // assumption ri1 is of type int &, but this is also wrong.

So neither can I preceed a typedef foo& with a const, nor can I remove the const of reference.

It is easy to implemente typetraits that do this job, I'm just not sure what the correct approach would be.
----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=454#comment634

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list