-
Notifications
You must be signed in to change notification settings - Fork 474
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
Add UniqueFD
and ScopeExit
#973
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.
Overall looks good to me
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.
LGTM. Although, as we write more and more code, it can be a good time to try modularizing source files into folders.
Good idea, I will try to do this. |
UniqueFD
is a wrapped file descriptor with owership management, i.e. aunique_ptr
-version fd.ScopeExit
is a scope guard likestd::experimental::scope_exit
in the library fundamentals v3 from WG21 orboost::scope_guard
in Boost.