From 55fa15b438be66b89c903631f111cd77926b3fae Mon Sep 17 00:00:00 2001 From: Marcin Cieslak Date: Sat, 9 May 2015 17:47:53 +0000 Subject: [PATCH] Don't use std::to_string (C++) Use streams to convert unsigned long value --- eval.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eval.cpp b/eval.cpp index 4d4d17f19f..f63f711e59 100644 --- a/eval.cpp +++ b/eval.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include @@ -528,7 +529,9 @@ namespace Sass { Expression* Eval::operator()(Function_Call* c) { if (backtrace->parent != NULL && backtrace->depth() > Constants::MaxCallStack) { - error("Stack depth exceeded max of " + to_string(Constants::MaxCallStack), c->pstate(), backtrace); + ostringstream stm; + stm << "Stack depth exceeded max of " << Constants::MaxCallStack; + error(stm.str(), c->pstate(), backtrace); } string name(Util::normalize_underscores(c->name())); string full_name(name + "[f]");