From e98e10a58e95f3c81e25d9f970f919441e1d3bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 23 Mar 2019 01:02:42 +0100 Subject: [PATCH] Math: make Constants base incomplete. --- src/Magnum/Math/Constants.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Math/Constants.h b/src/Magnum/Math/Constants.h index 7d1cc8594..afb2035c1 100644 --- a/src/Magnum/Math/Constants.h +++ b/src/Magnum/Math/Constants.h @@ -40,11 +40,9 @@ namespace Magnum { namespace Math { @see @ref Magnum::Constants, @ref Magnum::Constantsd */ +#ifdef DOXYGEN_GENERATING_OUTPUT template struct Constants { - Constants() = delete; - /* See TypeTraits for answer why these are functions and not constants. */ - #ifdef DOXYGEN_GENERATING_OUTPUT /** * @brief @f$ \pi @f$. * @@ -141,8 +139,10 @@ template struct Constants { * @see @ref isInf() */ static constexpr T inf(); - #endif }; +#else +template struct Constants; +#endif #ifndef DOXYGEN_GENERATING_OUTPUT template<> struct Constants {