From ddd28cc3e77e1c5dcff0a57d6d61a949aa9ecb3e Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sun, 25 Jan 2015 20:06:12 +0200 Subject: [PATCH] Fixed unary x2str. --- stglibs/common.lib/include/stg/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stglibs/common.lib/include/stg/common.h b/stglibs/common.lib/include/stg/common.h index ddc69def..f46c922a 100644 --- a/stglibs/common.lib/include/stg/common.h +++ b/stglibs/common.lib/include/stg/common.h @@ -168,11 +168,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); } +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); } +std::string unsigned2str(varT x) { std::string s; return unsigned2str(x, s); } //----------------------------------------------------------------------------- template -- 2.43.2