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

Fixes for 'const char*' overloads #97

Merged
merged 3 commits into from
May 31, 2013
Merged

Fixes for 'const char*' overloads #97

merged 3 commits into from
May 31, 2013

Conversation

kspangsege
Copy link
Contributor

  1. No need to add overloads for begins_with() ends_with() and contains() because these aren't provided in a bool version, and there is nothing else they could conflict with.

  2. The new overloads are moved down under the StringData versions, since they are a mere hack, and therefore are secondary to the StringData versions.

  3. A comment similar to the one in mixed.hpp:113 was added to explain why these seemingly redundant overloads are there.

  4. Parameter name 'value' changed to 'c_str' to make it a little more clear that the functions expect a null-terminated string.

  5. I moved the definitions for the 'const char*' overloads into the header file and added the 'inline' keyword. These overloads are school book examples of what should be marked as inline.

\cc @rrrlasse

@ghost ghost assigned rrrlasse May 30, 2013
rrrlasse added a commit that referenced this pull request May 31, 2013
Fixes for 'const char*' overloads
@rrrlasse rrrlasse merged commit d5fa858 into realm:master May 31, 2013
@rrrlasse rrrlasse deleted the char_ptr_overloads branch May 31, 2013 20:47
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants