]> git.stg.codes - stg.git/blobdiff - stglibs/common.lib/include/stg/common.h
Added unary versions of x2str ans unsigned2str.
[stg.git] / stglibs / common.lib / include / stg / common.h
index 80d32aba45a45116b523e81a4340e30b16e8c3fa..eb0d14a625343b00f41bc53131fd2631d927075d 100644 (file)
@@ -112,7 +112,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); }
+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); }
 
 //-----------------------------------------------------------------------------
 template <typename varT>