-
Notifications
You must be signed in to change notification settings - Fork 786
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use c++ std filesystem #4309
Use c++ std filesystem #4309
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed how file opening errors are handled in #4314 which means we won't need to remove the associated test here.
I tried to push a commit on top of this branch but it looks like GitHub branch protection rules prevent this.
Please rebase and this should be good to go.
86e311a
to
efc1dd5
Compare
Github runners are reporting some strange linker errors after rebasing this PR on current develop branch. |
The linker errors were related to GitHub caching. I cleared the cache and re-ran and they passed so I committed the other PR. Thanks! |
This replaces all uses of boost filesystem with standard c++ filesystem.
A couple of notes:
boost::filesystem::unique_path is not supported in std::filesystem. I have re-written the nano::unique_path function found in /secure/utility.cpp so that it mimics the same behavior.
The "bad_path" unit test fails in LMDB mode when the path input is set to "///" because of the way std::filesystem handles invalid paths. I have removed this test.
Target issue: #4057