-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
enhance string util functions #21893
Conversation
10729ec
to
3fa5115
Compare
What's the need for writing a wrapper for ostringstream? ostringstream is already general enough. |
Using a function call for appending to ostream is helpful when using with macros or other template functions.
|
### Description revert forceinline for MakeString. This change reverts #21893. The forceinline was introduced for performance considerations, however it turns out to have some notable binary size increase, which is a concern for some binary size sensitive platforms like Android. I made a few tests locally and found it is not related to whether or not have used the template struct `if_char_array_make_ptr_t` trick. So I have to revert this back.
Description
MakeString
force inlineadd aStringJoin
utilityMotivation and Context