From: Maxim Mamontov Date: Sun, 25 Jan 2015 18:06:12 +0000 (+0200) Subject: Fixed unary x2str. X-Git-Tag: 2.409~205 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/ddd28cc3e77e1c5dcff0a57d6d61a949aa9ecb3e?ds=inline Fixed unary x2str. --- 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