[v3] Fix libstdc++/40497
Jonathan Wakely
jwakely.gcc@gmail.com
Sun Jun 21 00:09:00 GMT 2009
2009/6/20 Paolo Carlini:
> 2009-06-20 Paolo Carlini <paolo.carlini@oracle.com>
>
> PR libstdc++/40497
> * include/bits/stl_iterator_base_funcs.h (next, prev): Fix the
> signature per the current C++1x draft (N2857).
> * testsuite/24_iterators/operations/40497.cc: Add.
Doesn't that signature rely on concepts to find difference_type, and
so without concepts won't work for pointers?
#include <iterator>
int main()
{
int arr[2] = { };
int* i = arr;
return *std::next(i);
}
More information about the Libstdc++
mailing list