]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/include/stg/common.h
Different small fixes plus error logging.
[stg.git] / stglibs / common.lib / include / stg / common.h
index 6df89f73a7da67ad0e2347db213f007246e844aa..3b1ea27541020c684d0e79ee88374d1dae704126 100644 (file)
@@ -115,11 +115,11 @@ int str2x(const std::string & str, varT & x);
 template <typename varT>
 const std::string & x2str(varT x, std::string & s);
 template <typename varT>
-const std::string & x2str(varT x) { std::string s; return x2str(x, s); }
+std::string x2str(varT x) { std::string s; return x2str(x, s); }
 template <typename varT>
 const std::string & unsigned2str(varT x, std::string & s);
 template <typename varT>
-const std::string & unsigned2str(varT x) { std::string s; return unsigned2str(x, s); }
+std::string unsigned2str(varT x) { std::string s; return unsigned2str(x, s); }
 
 //-----------------------------------------------------------------------------
 template <typename varT>