This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 May 2016 11:48:59 +0000
- Subject: [Bug libstdc++/71004] recursive_directory_iterator does not have a user-provided default ctor
- Auto-submitted: auto-generated
- References: <bug-71004-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71004
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Eric Fiselier from comment #1)
> recursive_directory_iterator it;
> assert(it.recursion_pending() == false);
> assert(it.recursion_pending() == true);
N.B. This test is undefined, those observer functions have preconditions that
they are not called on the end iterator.