[Dune] [#674] strict-aliasing warnings with gcc-4.4

Dune flyspray at dune-project.org
Wed Apr 21 09:56:01 CEST 2010


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#674 - strict-aliasing warnings with gcc-4.4
User who did this - Jö Fahlke (joe)

----------
> Iterator it = grid.leafbegin();
> EntityPointer ep1 = it; // cast operator used

This is a use of the copy constructor EntityPointer(const EntityPointer&).
Since Iterator is not an EntityPointer, it has to be cast to one first.

> EntityPointer ep2( it ); // cast operator not used

This is a call to the EntityPointer constructor with one of the signatures
EntityPointer(Iterator&)
EntityPointer(Iterator)
EntityPointer(const Iterator&)
EntityPointer(const Iterator)

Construction via =... and via (...) are two different things.

----------

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

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