[Dune] [#1042] GridView: support for C++11 range-based for statement
Dune
flyspray at dune-project.org
Fri Feb 17 17:12:56 CET 2012
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#1042 - GridView: support for C++11 range-based for statement
User who did this - Jö Fahlke (joe)
----------
Regarding the cheap creation of the entities/intersections range object: guaranteeing cheap creation shouldn't be a problem. In the current patch these objects simply store a reference to the gridview.
Regarding deprecation of grid.lbegin(), grid.lend(), grid.leafbegin() and grid.leafend(): For most code based on PDELab that shouldn't be a problem, usually everything is based on GridView's there and the grid itself is seldom used. I can't recall a single instance where entity iterators a called directly on the grid.
Regarding deprecation of gv.begin(), gv.end(), gv.ibegin(), gv.iend(): I'm a bit uneasy about this, though it could be done. The new methods a mostly only useful if you are able to use C++11. Since this isn't true for most of dune and many of the dependent modules, this would add another 11 or 22 columns (depending on how you code it exactly) to every for-loop that iterates over the grid, probably resulting in less readable code with little benefit.
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=1042#comment3209
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