mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-28 23:13:00 +00:00
vector_math: Return by const reference for const operator[]
Makes behavior between both overloads consistent.
This commit is contained in:
parent
e23c3cd7f7
commit
cc2ff226ae
|
@ -131,7 +131,7 @@ public:
|
|||
{
|
||||
return *((&x) + i);
|
||||
}
|
||||
T operator[](const int i) const {
|
||||
const T& operator[](const int i) const {
|
||||
return *((&x) + i);
|
||||
}
|
||||
|
||||
|
@ -288,7 +288,7 @@ public:
|
|||
{
|
||||
return *((&x) + i);
|
||||
}
|
||||
T operator[](const int i) const {
|
||||
const T& operator[](const int i) const {
|
||||
return *((&x) + i);
|
||||
}
|
||||
|
||||
|
@ -502,7 +502,7 @@ public:
|
|||
{
|
||||
return *((&x) + i);
|
||||
}
|
||||
T operator[](const int i) const {
|
||||
const T& operator[](const int i) const {
|
||||
return *((&x) + i);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue