[Bug c++/96222] std::filesystem::directory_iterator shares state

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jul 16 20:04:57 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96222

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That's because it's iterator category is input_iterator_tag and input iterators
are single pass. See https://en.cppreference.com/w/cpp/named_req/InputIterator

So this is not a bug.


More information about the Gcc-bugs mailing list