mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Merge pull request #3185 from lioncash/vec-index
vector_math: Return by const reference for const operator[]
This commit is contained in:
		
						commit
						79e246d82f
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -131,7 +131,7 @@ public: | ||||||
|     { |     { | ||||||
|         return *((&x) + i); |         return *((&x) + i); | ||||||
|     } |     } | ||||||
|     T operator[](const int i) const { |     const T& operator[](const int i) const { | ||||||
|         return *((&x) + i); |         return *((&x) + i); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | @ -288,7 +288,7 @@ public: | ||||||
|     { |     { | ||||||
|         return *((&x) + i); |         return *((&x) + i); | ||||||
|     } |     } | ||||||
|     T operator[](const int i) const { |     const T& operator[](const int i) const { | ||||||
|         return *((&x) + i); |         return *((&x) + i); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | @ -502,7 +502,7 @@ public: | ||||||
|     { |     { | ||||||
|         return *((&x) + i); |         return *((&x) + i); | ||||||
|     } |     } | ||||||
|     T operator[](const int i) const { |     const T& operator[](const int i) const { | ||||||
|         return *((&x) + i); |         return *((&x) + i); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue