From c5c82c81ec184999feb982140547bd1351150655 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 27 Mar 2017 21:32:25 +0300 Subject: No std::to_string in the silly C++ library we still use on Android Change-Id: I03a3bd999e4f423f6b5422417109e789dc5b5397 --- include/formula/token.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/formula/token.hxx') diff --git a/include/formula/token.hxx b/include/formula/token.hxx index 8747517ac481..7856d787d660 100644 --- a/include/formula/token.hxx +++ b/include/formula/token.hxx @@ -117,7 +117,9 @@ inline std::string StackVarEnumToString(StackVar const e) case svSep: return "Sep"; case svUnknown: return "Unknown"; } - return std::to_string(static_cast(e)); + std::ostringstream os; + os << static_cast(e); + return os.str(); } class FORMULA_DLLPUBLIC FormulaToken : public IFormulaToken -- cgit