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

Don't return "const values" #15

Closed
tanadeau opened this issue Jan 6, 2015 · 1 comment
Closed

Don't return "const values" #15

tanadeau opened this issue Jan 6, 2015 · 1 comment

Comments

@tanadeau
Copy link

tanadeau commented Jan 6, 2015

In member functions like dump and type_name, return std::string instead const std::string. Returning const values cause unnecessary copies to occur.

@nlohmann
Copy link
Owner

nlohmann commented Jan 6, 2015

Thanks for the hint!

@Hoohya Hoohya mentioned this issue Jan 2, 2020
GerHobbelt pushed a commit to GerHobbelt/nlohmann-json that referenced this issue May 7, 2021
925316 pushed a commit to 925316/json that referenced this issue Sep 26, 2024
keep name spoofing menu button(nlohmann#14)
add smooth self-aim(nlohmann#7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants