Browse Source

Math: make Constants base incomplete.

pull/331/head
Vladimír Vondruš 7 years ago
parent
commit
e98e10a58e
  1. 8
      src/Magnum/Math/Constants.h

8
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<class T> 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<class T> struct Constants {
* @see @ref isInf()
*/
static constexpr T inf();
#endif
};
#else
template<class> struct Constants;
#endif
#ifndef DOXYGEN_GENERATING_OUTPUT
template<> struct Constants<Double> {

Loading…
Cancel
Save