-
Notifications
You must be signed in to change notification settings - Fork 1.6k
_NODISCARD for <hash_map> and <hash_set> #1574
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
_NODISCARD for <hash_map> and <hash_set> #1574
Conversation
miscco
left a comment
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.
Looks reasonable, however, these files will be removed with the vNext rbanch https://github.com/microsoft/STL/wiki/vNext-Planning
|
Oh well 😄 |
|
While we are indeed planning to remove |
StephanTLavavej
left a comment
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.
Looks good, thanks! I'll go ahead and push changes for the two issues (one stylistic) that I found.
|
Thanks for adding even more occurrences of the best attribute ever to the STL! All shall love |
Further addresses #206.
Even though it's deprecated, it's still in the codebase, and I've found some member functions that seemingly can be marked as
_NODISCARD.Also, I'm very unsure about the helper functions, so if I missed anything in there that can be marked
_NODISCARDor has to be removed somewhere, then please let me know.