diff --git a/src/Magnum/Math/Complex.h b/src/Magnum/Math/Complex.h index 0fd31f984..7af206749 100644 --- a/src/Magnum/Math/Complex.h +++ b/src/Magnum/Math/Complex.h @@ -89,8 +89,6 @@ See @ref transformations for brief introduction. @see @ref Magnum::Complex, @ref Magnum::Complexd, @ref Matrix3 */ template class Complex { - template friend class Complex; - public: typedef T Type; /**< @brief Underlying data type */ @@ -440,6 +438,11 @@ template class Complex { } private: + #ifndef DOXYGEN_GENERATING_OUTPUT + /* Doxygen copies the description from Magnum::Complex here. Ugh. */ + template friend class Complex; + #endif + T _real, _imaginary; }; diff --git a/src/Magnum/Math/Quaternion.h b/src/Magnum/Math/Quaternion.h index 6112fed47..8a29f65f0 100644 --- a/src/Magnum/Math/Quaternion.h +++ b/src/Magnum/Math/Quaternion.h @@ -238,8 +238,6 @@ See @ref transformations for a brief introduction. @ref Matrix4 */ template class Quaternion { - template friend class Quaternion; - public: typedef T Type; /**< @brief Underlying data type */ @@ -588,6 +586,11 @@ template class Quaternion { Vector3 transformVectorNormalized(const Vector3& vector) const; private: + #ifndef DOXYGEN_GENERATING_OUTPUT + /* Doxygen copies the description from Magnum::Quaternion here. Ugh. */ + template friend class Quaternion; + #endif + /* Used to avoid including Functions.h */ constexpr static T pow2(T value) { return value*value;