fix for string to string conversion

This commit is contained in:
Erik Frojdh
2019-10-01 12:18:06 +02:00
parent 3c6d7ca4a5
commit ffa9bbe8d2
2 changed files with 18 additions and 1 deletions

View File

@ -170,4 +170,13 @@ ToString(const T &obj) {
return obj.str();
}
/**
* Call ToString with a string, causes copy but might be needed
* in generic code.
*/
template <>
inline std::string ToString<std::string>(const std::string& s){
return s;
}
} // namespace sls