From: Maxim Mamontov <faust.madf@gmail.com>
Date: Mon, 5 Aug 2013 17:27:29 +0000 (+0300)
Subject: Added unary versions of x2str ans unsigned2str.
X-Git-Tag: 2.409~341
X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/393d6e8e0a108dbca6a0ef2dde96f23be2ce2987

Added unary versions of x2str ans unsigned2str.
---

diff --git a/stglibs/common.lib/include/stg/common.h b/stglibs/common.lib/include/stg/common.h
index 80d32aba..eb0d14a6 100644
--- a/stglibs/common.lib/include/stg/common.h
+++ b/stglibs/common.lib/include/stg/common.h
@@ -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>