Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Don't use std::to_string (C++) #1191

Merged
merged 1 commit into from
May 10, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion eval.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <typeinfo>

Expand Down Expand Up @@ -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]");
Expand Down