]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/include/stg/common.h
Fixed unary x2str.
[stg.git] / stglibs / common.lib / include / stg / common.h
index ddc69def4d503f4d57e310b5adfc9bbca6ddcf3b..f46c922aedf6a85be7423b00c0a97285af40f064 100644 (file)
@@ -168,11 +168,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>