Browse Source

GCC 4.4 compatibility: work around ambiguous std::to_string() call.

Vladimír Vondruš 11 years ago
parent
commit
4effade323
  1. 8
      src/Magnum/DebugOutput.cpp

8
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<unsigned long long>(id)) +
#endif
"):" << string;
}
}

Loading…
Cancel
Save