mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-12-02 02:57:47 +01:00
fix for string to string conversion
This commit is contained in:
1 parent
3c6d7ca4a5
commit
ffa9bbe8d2
2 files changed
+18
-1
No files matched your search
@@ -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