This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] Fix libstdc++/40497


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]