You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Needs a check that will find usage of invalidated references to something that was owned by std::filesystem::directory_iterator before the invalidation. Since std::filesystem::directory_iterator's increment has to invalidate all copies of the previous value of *this(look at https://en.cppreference.com/w/cpp/filesystem/directory_iterator/increment ), this check will suggest to make a copy instead of taking a reference.
Needs a check that will find usage of invalidated references to something that was owned by std::filesystem::directory_iterator before the invalidation. Since std::filesystem::directory_iterator's increment has to invalidate all copies of the previous value of *this(look at https://en.cppreference.com/w/cpp/filesystem/directory_iterator/increment ), this check will suggest to make a copy instead of taking a reference.
Needs a check that will find usage of invalidated references to something that was owned by
std::filesystem::directory_iterator
before the invalidation. Sincestd::filesystem::directory_iterator
's increment has to invalidate all copies of the previous value of*this
(look at https://en.cppreference.com/w/cpp/filesystem/directory_iterator/increment ), this check will suggest to make a copy instead of taking a reference.BEFORE
AFTER
https://godbolt.org/z/3Wzoq4rP4
All of the above applies to
std::filesystem::recursive_directory_iterator
as well.The text was updated successfully, but these errors were encountered: