[Bug libstdc++/57515] implement begin() and end() for fixed size arrays

2013-06-03 Thread jos at vandenoever dot info
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57515 jos at vandenoever dot info changed: What|Removed |Added Resolution|INVALID |WORKSFORME --- Comment #3 fr

[Bug libstdc++/57515] implement begin() and end() for fixed size arrays

2013-06-03 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57515 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug libstdc++/57515] implement begin() and end() for fixed size arrays

2013-06-03 Thread jos at vandenoever dot info
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57515 --- Comment #1 from jos at vandenoever dot info --- The first line of the code snippet was missing: int some_list[]={ 1, 2, 3, 4, 5 }; int total = 0; std::for_each(begin(some_list), end(some_list), [&total](int x) { total += x;