-
Notifications
You must be signed in to change notification settings - Fork 190
Closed
Labels
available on masterFix is done on master branch, issue closed on next releaseFix is done on master branch, issue closed on next releasebugSomething isn't workingSomething isn't workingmediumSeverity: mediumSeverity: medium
Milestone
Description
Describe the bug
I'm not sure if this meets the C++ standard, but both msvc and mingw implementations do this.
To Reproduce
auto path = fs::path("test/");
fs::create_directory(path);
auto itor = fs::directory_iterator(path);
while (itor != fs::directory_iterator()) {
++itor;
}
fs::remove_all(path);
fs::create_directory(path); // throw an exception
When itor is equal to end(), it releases the resources held by itor. fs::create_directory will not throw an exception.
Expected behavior
The second fs::create_directory works fine.
Additional context
Metadata
Metadata
Assignees
Labels
available on masterFix is done on master branch, issue closed on next releaseFix is done on master branch, issue closed on next releasebugSomething isn't workingSomething isn't workingmediumSeverity: mediumSeverity: medium