-
Notifications
You must be signed in to change notification settings - Fork 91
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
Replace std::string with string #1301
Conversation
You may be willing to remove the |
Oh. Yes. |
There are a couple of occurrences of |
@@ -29,7 +29,7 @@ namespace stringutilities | |||
/** | |||
* String tokenizing function | |||
**/ | |||
string_array Tokenize( const std::string & str, const std::string & delimiters ) | |||
string_array Tokenize( const string & str, const string & delimiters ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Position of const
is not restrained to string
. It will probably be more efficient to deal with const
position all at once, for all the argument types, in another PR, when we find/build an automated way to do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes....we should do the const enforcement in a stand-alone PR.
Do you want to take also a look at the types: int and integer? Are they both related to the aliases localIndex/globalIndex? |
If they are actually a local or global index, then that they should be Whatever the case...this PR is to fix |
I think we keep them. If we ever change the |
This PR replaces instances of
std::string
with thestring
alias inside of GEOSX.