libstdc++/71005 fix post-increment for filesystem iterators
authorJonathan Wakely <jwakely@redhat.com>
Tue, 10 May 2016 11:25:06 +0000 (12:25 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 10 May 2016 11:25:06 +0000 (12:25 +0100)
commitd7187f9ea16a5494d3d7cfd1264a40057fa9a504
tree17e298208a900930d88a077df9aa7e7d5a57a74a
parentcf68d92c7bb339d89426558cae2ad731ae8f0508
libstdc++/71005 fix post-increment for filesystem iterators

PR libstdc++/71005
* include/experimental/bits/fs_dir.h (__directory_iterator_proxy):
New type.
(directory_iterator::operator++(int)): Return proxy.
(recursive_directory_iterator::operator++(int)): Likewise.
* testsuite/experimental/filesystem/iterators/directory_iterator.cc:
Test post-increment.
* testsuite/experimental/filesystem/iterators/
recursive_directory_iterator.cc: Likewise.

From-SVN: r236072
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/bits/fs_dir.h
libstdc++-v3/testsuite/experimental/filesystem/iterators/directory_iterator.cc
libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc