r236713 - in /branches/gcc-5-branch/libstdc++-v...
redi@gcc.gnu.org
redi@gcc.gnu.org
Wed May 25 15:42:00 GMT 2016
Author: redi
Date: Wed May 25 15:42:51 2016
New Revision: 236713
URL: https://gcc.gnu.org/viewcvs?rev=236713&root=gcc&view=rev
Log:
libstdc++/71005 fix post-increment for filesystem iterators
Backport from mainline
2016-05-10 Jonathan Wakely <jwakely@redhat.com>
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.
Modified:
branches/gcc-5-branch/libstdc++-v3/ChangeLog
branches/gcc-5-branch/libstdc++-v3/include/experimental/fs_dir.h
branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/iterators/directory_iterator.cc
branches/gcc-5-branch/libstdc++-v3/testsuite/experimental/filesystem/iterators/recursive_directory_iterator.cc
More information about the Gcc-cvs
mailing list