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

Dune dune at dune-project.org
Fri Nov 7 07:30:22 CET 2008


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Martin Nolte (nolte) 

Attached to Project - Dune
Summary - cast from GenericIterator to const GenericIterator broken
Task Type - Bug Report
Category - Common
Status - New
Assigned To - 
Operating System - Unspecified / All
Severity - Medium
Priority - Normal
Reported Version - SVN
Due in Version - 1.2
Due Date - Undecided
Details - Adding a template parameter for the reference in revision 5345 broke the implicit cast from a GenericIterator to a const GenericIterator.

The problem is that GenericIterator< const C, const T > sets R=const T& while the mutable iterator GenericIterator< C, T > sets R=T& and uses this R in the copy constructors (and in equals, distanceTo).

See iteratorfacestest for details (yes, it fails).

PS: Why does distanceTo copy the iterator instead of taking a const reference?

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

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