From 086570581357f17fd78011ac5c0c0b286aae0f9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 29 Nov 2013 01:55:10 +0100 Subject: [PATCH] Math: fix Range compilation with Clang, mark the constructors as implicit. Somehow defaulted constructor is not enough and Clang complained about no user-provided default constructor. --- src/Math/Range.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Math/Range.h b/src/Math/Range.h index 5489c9ff8..e914f02ec 100644 --- a/src/Math/Range.h +++ b/src/Math/Range.h @@ -204,13 +204,13 @@ See @ref Range for more information. template class Range2D: public Range<2, T> { public: /** @copydoc Range() */ - constexpr Range2D() = default; + constexpr /*implicit*/ Range2D() {} /** @copydoc Range(const VectorType&, const VectorType&) */ - constexpr Range2D(const Vector2& min, const Vector2& max): Range<2, T>(min, max) {} + constexpr /*implicit*/ Range2D(const Vector2& min, const Vector2& max): Range<2, T>(min, max) {} /** @copydoc Range(const Range&) */ - constexpr Range2D(const Range<2, T>& other): Range<2, T>(other) {} + constexpr /*implicit*/ Range2D(const Range<2, T>& other): Range<2, T>(other) {} /** @copydoc Range(const Range&) */ template constexpr explicit Range2D(const Range2D& other): Range<2, T>(other) {} @@ -305,13 +305,13 @@ See @ref Range for more information. template class Range3D: public Range<3, T> { public: /** @copydoc Range() */ - constexpr Range3D() = default; + constexpr /*implicit*/ Range3D() {} /** @copydoc Range(const VectorType&, const VectorType&) */ - constexpr Range3D(const Vector3& min, const Vector3& max): Range<3, T>(min, max) {} + constexpr /*implicit*/ Range3D(const Vector3& min, const Vector3& max): Range<3, T>(min, max) {} /** @copydoc Range(const Range&) */ - constexpr Range3D(const Range<3, T>& other): Range<3, T>(other) {} + constexpr /*implicit*/ Range3D(const Range<3, T>& other): Range<3, T>(other) {} /** @copydoc Range(const Range&) */ template constexpr explicit Range3D(const Range3D& other): Range<3, T>(other) {}