diff --git a/src/Magnum/Math/Matrix.h b/src/Magnum/Math/Matrix.h index b010ee17b..7798ba55d 100644 --- a/src/Magnum/Math/Matrix.h +++ b/src/Magnum/Math/Matrix.h @@ -113,7 +113,12 @@ template class Matrix: public RectangularMatrix constexpr /*implicit*/ Matrix(const Vector& first, const U&... next) noexcept: RectangularMatrix(first, next...) {} /** @brief Construct matrix with one value for all elements */ - constexpr explicit Matrix(T value) noexcept: RectangularMatrix{typename Implementation::GenerateSequence::Type(), value} {} + constexpr explicit Matrix(T value) noexcept + /** @todoc remove workaround when doxygen is sane */ + #ifndef DOXYGEN_GENERATING_OUTPUT + : RectangularMatrix{typename Implementation::GenerateSequence::Type(), value} + #endif + {} /** * @brief Construct matrix from another of different type diff --git a/src/Magnum/Math/Matrix3.h b/src/Magnum/Math/Matrix3.h index 38ae00857..d391e24b3 100644 --- a/src/Magnum/Math/Matrix3.h +++ b/src/Magnum/Math/Matrix3.h @@ -231,7 +231,12 @@ template class Matrix3: public Matrix3x3 { constexpr /*implicit*/ Matrix3(const Vector3& first, const Vector3& second, const Vector3& third) noexcept: Matrix3x3(first, second, third) {} /** @brief Construct matrix with one value for all elements */ - constexpr explicit Matrix3(T value) noexcept: Matrix3x3{value} {} + constexpr explicit Matrix3(T value) noexcept + /** @todoc remove workaround when doxygen is sane */ + #ifndef DOXYGEN_GENERATING_OUTPUT + : Matrix3x3{value} + #endif + {} /** @copydoc Matrix::Matrix(const RectangularMatrix&) */ template constexpr explicit Matrix3(const RectangularMatrix<3, 3, U>& other) noexcept: Matrix3x3(other) {} diff --git a/src/Magnum/Math/Matrix4.h b/src/Magnum/Math/Matrix4.h index be9ace11d..0e43059fd 100644 --- a/src/Magnum/Math/Matrix4.h +++ b/src/Magnum/Math/Matrix4.h @@ -402,7 +402,12 @@ template class Matrix4: public Matrix4x4 { constexpr /*implicit*/ Matrix4(const Vector4& first, const Vector4& second, const Vector4& third, const Vector4& fourth) noexcept: Matrix4x4(first, second, third, fourth) {} /** @brief Construct matrix with one value for all elements */ - constexpr explicit Matrix4(T value) noexcept: Matrix4x4{value} {} + constexpr explicit Matrix4(T value) noexcept + /** @todoc remove workaround when doxygen is sane */ + #ifndef DOXYGEN_GENERATING_OUTPUT + : Matrix4x4{value} + #endif + {} /** @copydoc Matrix::Matrix(const RectangularMatrix&) */ template constexpr explicit Matrix4(const RectangularMatrix<4, 4, U>& other) noexcept: Matrix4x4(other) {} diff --git a/src/Magnum/Math/RectangularMatrix.h b/src/Magnum/Math/RectangularMatrix.h index 20ca87ef5..c44acd3cd 100644 --- a/src/Magnum/Math/RectangularMatrix.h +++ b/src/Magnum/Math/RectangularMatrix.h @@ -131,7 +131,12 @@ template class RectangularMatrix { } /** @brief Construct matrix with one value for all components */ - constexpr explicit RectangularMatrix(T value) noexcept: RectangularMatrix{typename Implementation::GenerateSequence::Type(), value} {} + constexpr explicit RectangularMatrix(T value) noexcept + /** @todoc remove workaround when doxygen is sane */ + #ifndef DOXYGEN_GENERATING_OUTPUT + : RectangularMatrix{typename Implementation::GenerateSequence::Type(), value} + #endif + {} /** * @brief Construct matrix from another of different type diff --git a/src/Magnum/Shaders/DistanceFieldVector.h b/src/Magnum/Shaders/DistanceFieldVector.h index 32091aeb6..d8be4d5e2 100644 --- a/src/Magnum/Shaders/DistanceFieldVector.h +++ b/src/Magnum/Shaders/DistanceFieldVector.h @@ -105,7 +105,12 @@ template class MAGNUM_SHADERS_EXPORT DistanceFieldVector * This function can be safely used for constructing (and later * destructing) objects even without any OpenGL context being active. */ - explicit DistanceFieldVector(NoCreateT) noexcept: AbstractVector{NoCreate} {} + explicit DistanceFieldVector(NoCreateT) noexcept + /** @todoc remove workaround when doxygen is sane */ + #ifndef DOXYGEN_GENERATING_OUTPUT + : AbstractVector{NoCreate} + #endif + {} /** * @brief Set transformation and projection matrix diff --git a/src/Magnum/Shaders/Vector.h b/src/Magnum/Shaders/Vector.h index 810b4259a..1c7841323 100644 --- a/src/Magnum/Shaders/Vector.h +++ b/src/Magnum/Shaders/Vector.h @@ -99,7 +99,12 @@ template class MAGNUM_SHADERS_EXPORT Vector: public Abst * This function can be safely used for constructing (and later * destructing) objects even without any OpenGL context being active. */ - explicit Vector(NoCreateT) noexcept: AbstractVector{NoCreate} {} + explicit Vector(NoCreateT) noexcept + /** @todoc remove workaround when doxygen is sane */ + #ifndef DOXYGEN_GENERATING_OUTPUT + : AbstractVector{NoCreate} + #endif + {} /** * @brief Set transformation and projection matrix