Re: [PATCH] libstdc++/71005 fix post-increment for filesystem iterators

2016-05-10 Thread Jonathan Wakely
On 10/05/16 12:25 +0100, Jonathan Wakely wrote: Eric pointed out that the post-increment operator on filesystem directory iterators was returning the incremented value, because the returnedobject shared its state with the incremented iterator. This makes post-increment return a proxy, which cont

[PATCH] libstdc++/71005 fix post-increment for filesystem iterators

2016-05-10 Thread Jonathan Wakely
Eric pointed out that the post-increment operator on filesystem directory iterators was returning the incremented value, because the returnedobject shared its state with the incremented iterator. This makes post-increment return a proxy, which contains the directory_entry value before the increme