From 4effade323131c4ed6db25666df69f5254496e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 2 May 2015 17:22:34 +0200 Subject: [PATCH] GCC 4.4 compatibility: work around ambiguous std::to_string() call. --- src/Magnum/DebugOutput.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Magnum/DebugOutput.cpp b/src/Magnum/DebugOutput.cpp index 37d59edf8..9a494e8a1 100644 --- a/src/Magnum/DebugOutput.cpp +++ b/src/Magnum/DebugOutput.cpp @@ -100,7 +100,13 @@ void defaultCallback(const DebugOutput::Source source, const DebugOutput::Type t case DebugOutput::Type::Other: ; } - output << '(' + std::to_string(id) + "):" << string; + output << '(' + + #ifndef CORRADE_GCC44_COMPATIBILITY + std::to_string(id) + + #else + std::to_string(static_cast(id)) + + #endif + "):" << string; } }