Skip to content
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

Added Appropriate nodiscards #61

Merged
merged 2 commits into from
Apr 11, 2022
Merged

Conversation

NovaSmoof
Copy link
Contributor

Hey I was using the library and accidentally perform an error with uuid::from_string function. I would have caught the error if the function was [[nodiscard]]. So I added [[nodiscard]] to all functions that seemed appropriate.

I didn't add it to the random generator function because for some reason someone may just want to cycle random numbers out of no where. Don't really know why, but I wasn't 100% sure so I didn't add it there.

I also may have horribly messed up the spacing on things. Apologies, I have class in 10 minutes and I will definitely forget about this entire thing by the end of it.

@NovaSmoof
Copy link
Contributor Author

I just performed a change that undid the changes to spacing I did. Everything that should be [[nodiscard]] should still be be no discard.

@mariusbancila mariusbancila merged commit 9341e57 into mariusbancila:master Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants