From e5a72b25ce2ae8b025d72fab2b8d331e597a31b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 6 Aug 2012 23:13:19 +0200 Subject: [PATCH] Have non-explicit parameterless constructor for Vector3. So it's possible to return Vector3 as {}. --- src/Math/Vector3.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Math/Vector3.h b/src/Math/Vector3.h index a4d24fc56..040fe1f58 100644 --- a/src/Math/Vector3.h +++ b/src/Math/Vector3.h @@ -49,8 +49,11 @@ template class Vector3: public Vector<3, T> { a[0]*b[1]-a[1]*b[0]); } + /** @copydoc Vector::Vector() */ + inline constexpr Vector3() {} + /** @copydoc Vector::Vector(T) */ - inline constexpr explicit Vector3(T value = T()): Vector<3, T>(value, value, value) {} + inline constexpr explicit Vector3(T value): Vector<3, T>(value, value, value) {} /** @copydoc Vector::Vector(const Vector&) */ inline constexpr Vector3(const Vector<3, T>& other): Vector<3, T>(other) {}