diff --git a/src/Magnum/Math/Range.h b/src/Magnum/Math/Range.h index d754e8807..3821f3719 100644 --- a/src/Magnum/Math/Range.h +++ b/src/Magnum/Math/Range.h @@ -230,8 +230,15 @@ template class Range2D: public Range<2, T> { /** @copydoc Range(const Range&) */ template constexpr explicit Range2D(const Range2D& other): Range<2, T>(other) {} - /** @brief Construct range from external representation */ - template::from(std::declval()))> constexpr explicit Range2D(const U& other): Range<2, T>{Implementation::RangeConverter<2, T, U>::from(other)} {} + /** + * @brief Construct range from external representation + * @todoc Remove workaround when Doxygen no longer chokes on that line + */ + template::from(std::declval()))> constexpr explicit Range2D(const U& other) + #ifndef DOXYGEN_GENERATING_OUTPUT + : Range<2, T>{Implementation::RangeConverter<2, T, U>::from(other)} + #endif + {} /** * @brief Bottom left corner @@ -334,8 +341,15 @@ template class Range3D: public Range<3, T> { /** @copydoc Range(const Range&) */ template constexpr explicit Range3D(const Range3D& other): Range<3, T>(other) {} - /** @brief Construct range from external representation */ - template::from(std::declval()))> constexpr explicit Range3D(const U& other): Range<3, T>{Implementation::RangeConverter<3, T, U>::from(other)} {} + /** + * @brief Construct range from external representation + * @todoc Remove workaround when Doxygen no longer chokes on that line + */ + template::from(std::declval()))> constexpr explicit Range3D(const U& other) + #ifndef DOXYGEN_GENERATING_OUTPUT + : Range<3, T>{Implementation::RangeConverter<3, T, U>::from(other)} + #endif + {} /** * @brief Back bottom left corner