mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
@@ -45,7 +45,7 @@ std::vector<std::string> strsplit(std::string s, char del)
|
||||
// Find the first instance of the delimiter
|
||||
iR = s.find_first_of(del);
|
||||
// Delimiter not found, return the same string again
|
||||
if (iR < 0){
|
||||
if (iR == std::string::npos){
|
||||
v.push_back(s);
|
||||
return v;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user