From c5d31d74e3675e3c95a08623eaf2be2fdb6b7ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 12 Dec 2018 01:17:39 +0100 Subject: [PATCH] Math: provide forward declaration for Constants. No point in having it repeated in Magnum.h, since we include Math/Math.h anyway. --- src/Magnum/Magnum.h | 6 ------ src/Magnum/Math/Math.h | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Magnum/Magnum.h b/src/Magnum/Magnum.h index b9335ceed..deba6a7c5 100644 --- a/src/Magnum/Magnum.h +++ b/src/Magnum/Magnum.h @@ -48,12 +48,6 @@ typedef unsigned int GLenum; /* Needed for *Format and *Type enums */ namespace Magnum { -namespace Math { - #ifndef DOXYGEN_GENERATING_OUTPUT - template struct Constants; - #endif -} - /* Bring whole Corrade namespace */ using namespace Corrade; diff --git a/src/Magnum/Math/Math.h b/src/Magnum/Math/Math.h index 5af08c63e..d735a39b7 100644 --- a/src/Magnum/Math/Math.h +++ b/src/Magnum/Math/Math.h @@ -41,7 +41,7 @@ namespace Magnum { namespace Math { #ifndef DOXYGEN_GENERATING_OUTPUT template class BoolVector; -/* Class Constants used only statically */ +template class Constants; template class Complex; template class Dual;