diff options
author | krzys-h <krzys_h@interia.pl> | 2014-09-28 19:25:28 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2014-09-28 19:25:28 +0200 |
commit | f2c6b322dd3d909fe7928a35d4744992ab17adc1 (patch) | |
tree | 5799b69148bf0e731787500da276b92a54e76e4f /src/object/level/parserexceptions.cpp | |
parent | ab5c1271c01095db4a15156f425893c5707ad579 (diff) | |
download | colobot-f2c6b322dd3d909fe7928a35d4744992ab17adc1.tar.gz colobot-f2c6b322dd3d909fe7928a35d4744992ab17adc1.tar.bz2 colobot-f2c6b322dd3d909fe7928a35d4744992ab17adc1.zip |
Replaced std::to_string with boost::lexical_cast<std::string>
MXE has problems with std::to_string
Diffstat (limited to 'src/object/level/parserexceptions.cpp')
-rw-r--r-- | src/object/level/parserexceptions.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/object/level/parserexceptions.cpp b/src/object/level/parserexceptions.cpp index d5c4620..b495de7 100644 --- a/src/object/level/parserexceptions.cpp +++ b/src/object/level/parserexceptions.cpp @@ -19,6 +19,8 @@ #include "object/level/parser.h" +#include <boost/lexical_cast.hpp> + CLevelParserException::CLevelParserException(std::string message) noexcept { m_message = message; @@ -30,11 +32,11 @@ const char* CLevelParserException::what() const noexcept } CLevelParserExceptionMissingParam::CLevelParserExceptionMissingParam(CLevelParserParam* thisParam) noexcept -: CLevelParserException("Missing required param "+thisParam->GetName()+" (in "+thisParam->GetLine()->GetLevel()->GetFilename()+":"+std::to_string(thisParam->GetLine()->GetLineNumber())+")") +: CLevelParserException("Missing required param "+thisParam->GetName()+" (in "+thisParam->GetLine()->GetLevel()->GetFilename()+":"+boost::lexical_cast<std::string>(thisParam->GetLine()->GetLineNumber())+")") { } CLevelParserExceptionBadParam::CLevelParserExceptionBadParam(CLevelParserParam* thisParam, std::string requestedType) noexcept -: CLevelParserException("Unable to parse '"+thisParam->GetValue()+"' as "+requestedType+" (param '"+thisParam->GetName()+"' in "+thisParam->GetLine()->GetLevel()->GetFilename()+":"+std::to_string(thisParam->GetLine()->GetLineNumber())+")") +: CLevelParserException("Unable to parse '"+thisParam->GetValue()+"' as "+requestedType+" (param '"+thisParam->GetName()+"' in "+thisParam->GetLine()->GetLevel()->GetFilename()+":"+boost::lexical_cast<std::string>(thisParam->GetLine()->GetLineNumber())+")") { -}
\ No newline at end of file +} |