From 393d6e8e0a108dbca6a0ef2dde96f23be2ce2987 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Mon, 5 Aug 2013 20:27:29 +0300 Subject: [PATCH] Added unary versions of x2str ans unsigned2str. --- stglibs/common.lib/include/stg/common.h | 4 ++++ 1 file changed, 4 insertions(+) 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 const std::string & x2str(varT x, std::string & s); template +const std::string & x2str(varT x) { std::string s; return x2str(x, s); } +template const std::string & unsigned2str(varT x, std::string & s); +template +const std::string & unsigned2str(varT x) { std::string s; return unsigned2str(x, s); } //----------------------------------------------------------------------------- template -- 2.43.2