Re: [v3 PATCH] Implement LWG 2353

2017-11-20 Thread Jonathan Wakely
On 19/11/17 02:40 +0200, Ville Voutilainen wrote: --- /dev/null +++ b/libstdc++-v3/testsuite/24_iterators/operations/lwg2353.cc @@ -0,0 +1,26 @@ +// { dg-options "-D_GLIBCXX_CONCEPT_CHECKS" } +// { dg-do run { target c++11 } } + +#include +#include +#include +#include +#include + +template +

Re: [v3 PATCH] Implement LWG 2353

2017-11-18 Thread Ville Voutilainen
On 19 November 2017 at 02:40, Ville Voutilainen wrote: > The issue submission talks about ranges that have InputIterators > as their iterator type. Even without any such range types, the added > test more or less shows that it's draconian to require a ForwardIterator > in std::next, since it seems

[v3 PATCH] Implement LWG 2353

2017-11-18 Thread Ville Voutilainen
The issue submission talks about ranges that have InputIterators as their iterator type. Even without any such range types, the added test more or less shows that it's draconian to require a ForwardIterator in std::next, since it seems perfectly reasonable to be able to std::next() an iterator of a