mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
fix for string to string conversion
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user