From 8246c111e491f4fe0c0ddb9bcf7904f7d92efac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 28 Apr 2015 22:00:03 +0200 Subject: [PATCH] GCC 4.6 compatibility: no delegating constructors. --- src/Magnum/DebugOutput.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Magnum/DebugOutput.h b/src/Magnum/DebugOutput.h index a3b3e000c..6c2334275 100644 --- a/src/Magnum/DebugOutput.h +++ b/src/Magnum/DebugOutput.h @@ -812,12 +812,14 @@ class MAGNUM_EXPORT DebugGroup { * Calls @ref push(). * @see @link ~DebugGroup() @endlink, @ref pop() */ - explicit DebugGroup(Source source, UnsignedInt id, const std::string& message): DebugGroup{} { + /* GCC 4.6 doesn't have delegating constructors */ + explicit DebugGroup(Source source, UnsignedInt id, const std::string& message): _active{false} { push(source, id, message); } /** @overload */ - template explicit DebugGroup(Source source, UnsignedInt id, const char(&message)[size]): DebugGroup{} { + /* GCC 4.6 doesn't have delegating constructors */ + template explicit DebugGroup(Source source, UnsignedInt id, const char(&message)[size]): _active{false} { push(source, id, message); }