Browse Source

MSVC 2013 compatibility: worked around some initializer list bug.

Vladimír Vondruš 13 years ago
parent
commit
974f68a030
  1. 8
      src/DebugTools/Profiler.h

8
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

Loading…
Cancel
Save