From eb7a75b71e28c59bbcd778fe3b82c8c131c77b6b Mon Sep 17 00:00:00 2001 From: RameshRavone Date: Fri, 12 Apr 2019 10:01:44 +0530 Subject: [PATCH] fix shadows template parameter --- include/core/Basis.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/core/Basis.hpp b/include/core/Basis.hpp index b559b00..1ab61da 100644 --- a/include/core/Basis.hpp +++ b/include/core/Basis.hpp @@ -22,27 +22,27 @@ private: template class ColumnVector3 { private: - template + template class ColumnVectorComponent { private: Vector3 elements[3]; protected: - inline ColumnVectorComponent &operator=(const ColumnVectorComponent &p_value) { + inline ColumnVectorComponent &operator=(const ColumnVectorComponent &p_value) { return *this = real_t(p_value); } - - inline ColumnVectorComponent(const ColumnVectorComponent &p_value) { + + inline ColumnVectorComponent(const ColumnVectorComponent &p_value) { *this = real_t(p_value); } - inline ColumnVectorComponent &operator=(const real_t &p_value) { - element[component][column] = p_value; + inline ColumnVectorComponent &operator=(const real_t &p_value) { + elements[component][column1] = p_value; return *this; } inline operator real_t() const { - return element[component][column]; + return elements[component][column1]; } }; @@ -271,7 +271,7 @@ private: } inline operator String() const { - return String(Vector3(*this)) + return String(Vector3(*this)); } };