Skip to content

Commit fb82f0b

Browse files
committed
Merge pull request #1191 from saper/fix/1185pp
Using std::to_string breaks compilation on older gcc
2 parents 3cf31ef + 55fa15b commit fb82f0b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

eval.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <cstdlib>
22
#include <cmath>
33
#include <iostream>
4+
#include <sstream>
45
#include <iomanip>
56
#include <typeinfo>
67

@@ -528,7 +529,9 @@ namespace Sass {
528529
Expression* Eval::operator()(Function_Call* c)
529530
{
530531
if (backtrace->parent != NULL && backtrace->depth() > Constants::MaxCallStack) {
531-
error("Stack depth exceeded max of " + to_string(Constants::MaxCallStack), c->pstate(), backtrace);
532+
ostringstream stm;
533+
stm << "Stack depth exceeded max of " << Constants::MaxCallStack;
534+
error(stm.str(), c->pstate(), backtrace);
532535
}
533536
string name(Util::normalize_underscores(c->name()));
534537
string full_name(name + "[f]");

0 commit comments

Comments
 (0)