diff --git a/scripting/erm/ERMInterpreter.cpp b/scripting/erm/ERMInterpreter.cpp index 664b86d3d..0ee197bbc 100644 --- a/scripting/erm/ERMInterpreter.cpp +++ b/scripting/erm/ERMInterpreter.cpp @@ -77,7 +77,7 @@ namespace ERMConverter } else if(isMacro()) { - return boost::to_string(boost::format("M['%s']") % macro); + return (boost::format("M['%s']") % macro).str(); } else if(isSpecial() && (name.size() == 1)) { @@ -206,7 +206,7 @@ namespace ERMConverter } std::string operator()(const int & flag) const { - return boost::to_string(boost::format("F['%d']") % flag); + return (boost::format("F['%d']") % flag).str(); } };