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

Use call by (const) reference for std::string and alike #14

Open
Droggelbecher opened this issue Jul 27, 2010 · 0 comments
Open

Use call by (const) reference for std::string and alike #14

Droggelbecher opened this issue Jul 27, 2010 · 0 comments
Labels

Comments

@Droggelbecher
Copy link
Owner

Its not guaranteed that std::string does the smart thing by not copying the internal data by definition (although I'm pretty sure the gnu implementation is smart enough to do this).
Change std::string parameters (and where apropriate maybe also members) to be references.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant