From 199d38dfecf83d1bd641f4e451056c3438505e49 Mon Sep 17 00:00:00 2001 From: Yves Date: Sun, 24 Jan 2016 10:34:38 +0000 Subject: [PATCH] Work around clang bug to fix compiling. This was SVN commit r17703. --- source/scriptinterface/NativeWrapperDecls.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/scriptinterface/NativeWrapperDecls.h b/source/scriptinterface/NativeWrapperDecls.h index 3e24884a02..2df4cac1b2 100644 --- a/source/scriptinterface/NativeWrapperDecls.h +++ b/source/scriptinterface/NativeWrapperDecls.h @@ -18,11 +18,9 @@ #include #include -private: - - template struct MaybeRef; - -public: +// MaybeRef should be private, but has to be public due to a compiler bug in clang. +// TODO: Make this private when the bug is fixed in all supported versions of clang. +template struct MaybeRef; // Define lots of useful macros: