From 974f68a0308e40c5a684f881d19ffb99b7153d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 3 Dec 2013 15:38:46 +0100 Subject: [PATCH] MSVC 2013 compatibility: worked around some initializer list bug. --- src/DebugTools/Profiler.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/DebugTools/Profiler.h b/src/DebugTools/Profiler.h index d1a64e9dc..76eb984bb 100644 --- a/src/DebugTools/Profiler.h +++ b/src/DebugTools/Profiler.h @@ -115,7 +115,13 @@ class MAGNUM_DEBUGTOOLS_EXPORT Profiler { */ static const Section otherSection = 0; - explicit Profiler(): enabled(false), measureDuration(60), currentFrame(0), frameCount(0), sections{"Other"}, currentSection(otherSection) {} + explicit Profiler(): enabled(false), measureDuration(60), currentFrame(0), frameCount(0), + #ifndef CORRADE_MSVC2013_COMPATIBILITY + sections{"Other"}, + #else + sections({"Other"}), + #endif + currentSection(otherSection) {} /** * @brief Set measure duration