summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-25 15:18:39 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-25 15:18:39 +0100
commit810ddfb91ac24f23234fff9bbee6a757df123234 (patch)
tree731009d6678464f7bfabdcef87caf9bd3400f26d
parent8f5a3bb7bc30ef83d529e90e9584229c740af732 (diff)
Add no-op ConvToStr(const std::string&)
-rw-r--r--include/convto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/convto.h b/include/convto.h
index 82f13c46d..eaf14f6dc 100644
--- a/include/convto.h
+++ b/include/convto.h
@@ -74,6 +74,11 @@ inline std::string ConvToStr(char in)
return std::string(1, in);
}
+inline const std::string& ConvToStr(const std::string& in)
+{
+ return in;
+}
+
/** Template function to convert any input type to std::string
*/
template <class T> inline std::string ConvToStr(const T& in)