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

jos at vandenoever dot info gcc-bugzilla@gcc.gnu.org
Mon Jun 3 16:09:00 GMT 2013


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;
    });



More information about the Gcc-bugs mailing list