Code didn't compile on TDM-GCC 4.9 because std::to_string was still called at one place

0.8
Bruno Van de Velde 2017-09-17 14:31:12 +02:00
parent a90ad29c95
commit 0416eab605
1 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@
#include <TGUI/Loading/DataIO.hpp>
#include <TGUI/Global.hpp>
#include <TGUI/to_string.hpp>
#include <cctype>
#include <cassert>
@ -500,7 +501,7 @@ namespace tgui
std::string str = stream.str();
auto position = static_cast<std::iterator_traits<std::string::const_iterator>::difference_type>(stream.tellg());
std::size_t lineNumber = std::count(str.begin(), str.begin() + position, '\n') + 1;
throw Exception{"Error while parsing input at line " + std::to_string(lineNumber) + ". " + error};
throw Exception{"Error while parsing input at line " + to_string(lineNumber) + ". " + error};
}
else
throw Exception{"Error while parsing input. " + error};