On Thu, 27 Aug 2015, Jonathan Wakely wrote:
The std::cbegin function in <bits/range_access.h> can't call the std::begin function in <valarray> unless it knows about it, so we need to declare the valarray overloads in <bits/range_access.h>.
Hmm, do you remember why valarray has an ugly overload of std::begin instead of a nice member function begin like every other container ? It should at least be legal to implement it this way.
-- Marc Glisse