From b27d5efc04e7b2de112ec925177a722035e19220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 28 Aug 2011 22:16:42 +0200 Subject: [PATCH] Propagated dot product operator to Vector specializations. Otherwise GCC doesn't see the operator. --- src/Math/Vector2.h | 3 +++ src/Math/Vector3.h | 3 +++ src/Math/Vector4.h | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/Math/Vector2.h b/src/Math/Vector2.h index 9919527a9..1b234580a 100644 --- a/src/Math/Vector2.h +++ b/src/Math/Vector2.h @@ -53,6 +53,9 @@ template class Vector2: public Vector { /** @copydoc Vector::operator=() */ inline Vector2& operator=(const Vector& other) { return Vector::operator=(other); } + /** @copydoc Vector::operator*(const Vector&) */ + inline T operator*(const Vector& other) const { return Vector::operator*(other); } + /** @copydoc Vector::operator*(T) */ inline Vector2 operator*(T number) const { return Vector::operator*(number); } diff --git a/src/Math/Vector3.h b/src/Math/Vector3.h index e59c77903..15eaca6e6 100644 --- a/src/Math/Vector3.h +++ b/src/Math/Vector3.h @@ -80,6 +80,9 @@ template class Vector3: public Vector { /** @copydoc Vector::operator=() */ inline Vector3& operator=(const Vector& other) { return Vector::operator=(other); } + /** @copydoc Vector::operator*(const Vector&) */ + inline T operator*(const Vector& other) const { return Vector::operator*(other); } + /** @copydoc Vector::operator*(T) */ inline Vector3 operator*(T number) const { return Vector::operator*(number); } diff --git a/src/Math/Vector4.h b/src/Math/Vector4.h index b37593e9a..11f82593f 100644 --- a/src/Math/Vector4.h +++ b/src/Math/Vector4.h @@ -96,6 +96,9 @@ template class Vector4: public Vector { /** @copydoc Vector::operator=() */ inline Vector4& operator=(const Vector& other) { return Vector::operator=(other); } + /** @copydoc Vector::operator*(const Vector&) */ + inline T operator*(const Vector& other) const { return Vector::operator*(other); } + /** @copydoc Vector::operator*(T) */ inline Vector4 operator*(T number) const { return Vector::operator*(number); }