fix shadows template parameter

pull/266/head
RameshRavone 2019-04-12 10:01:44 +05:30
parent f0fe88bd36
commit eb7a75b71e
No known key found for this signature in database
GPG Key ID: 8D7482EEB169986F
1 changed files with 8 additions and 8 deletions

View File

@ -22,27 +22,27 @@ private:
template <int column>
class ColumnVector3 {
private:
template <int column, int component>
template <int column1, int component>
class ColumnVectorComponent {
private:
Vector3 elements[3];
protected:
inline ColumnVectorComponent<column, component> &operator=(const ColumnVectorComponent<column, component> &p_value) {
inline ColumnVectorComponent<column1, component> &operator=(const ColumnVectorComponent<column1, component> &p_value) {
return *this = real_t(p_value);
}
inline ColumnVectorComponent(const ColumnVectorComponent<column, component> &p_value) {
inline ColumnVectorComponent(const ColumnVectorComponent<column1, component> &p_value) {
*this = real_t(p_value);
}
inline ColumnVectorComponent<column, component> &operator=(const real_t &p_value) {
element[component][column] = p_value;
inline ColumnVectorComponent<column1, component> &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));
}
};