diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-03-27 21:32:25 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-03-27 21:38:58 +0300 |
commit | c5c82c81ec184999feb982140547bd1351150655 (patch) | |
tree | 212f5c02590104c4df61a1da1d7692fa29a60a6f /include/formula | |
parent | 59af9cbbccee600408c89e872d548d153523ab1f (diff) |
No std::to_string in the silly C++ library we still use on Android
Change-Id: I03a3bd999e4f423f6b5422417109e789dc5b5397
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/token.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
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<int>(e)); + std::ostringstream os; + os << static_cast<int>(e); + return os.str(); } class FORMULA_DLLPUBLIC FormulaToken : public IFormulaToken |