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 {