mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 22:00:05 +00:00 
			
		
		
		
	vector_math: remove broken SFINAE stuff
this was originally added to eliminate warnings on MSVC, but it doesn't work for custom types.
This commit is contained in:
		
							parent
							
								
									9906feefbd
								
							
						
					
					
						commit
						f3660ba9dd
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -31,7 +31,6 @@ | ||||||
| #pragma once | #pragma once | ||||||
| 
 | 
 | ||||||
| #include <cmath> | #include <cmath> | ||||||
| #include <type_traits> |  | ||||||
| 
 | 
 | ||||||
| namespace Math { | namespace Math { | ||||||
| 
 | 
 | ||||||
|  | @ -90,7 +89,7 @@ public: | ||||||
|         x -= other.x; |         x -= other.x; | ||||||
|         y -= other.y; |         y -= other.y; | ||||||
|     } |     } | ||||||
|     template <typename Q = T, class = typename std::enable_if<std::is_signed<Q>::value>::type> | 
 | ||||||
|     Vec2<decltype(-T{})> operator-() const { |     Vec2<decltype(-T{})> operator-() const { | ||||||
|         return MakeVec(-x, -y); |         return MakeVec(-x, -y); | ||||||
|     } |     } | ||||||
|  | @ -247,7 +246,7 @@ public: | ||||||
|         y -= other.y; |         y -= other.y; | ||||||
|         z -= other.z; |         z -= other.z; | ||||||
|     } |     } | ||||||
|     template <typename Q = T, class = typename std::enable_if<std::is_signed<Q>::value>::type> | 
 | ||||||
|     Vec3<decltype(-T{})> operator-() const { |     Vec3<decltype(-T{})> operator-() const { | ||||||
|         return MakeVec(-x, -y, -z); |         return MakeVec(-x, -y, -z); | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue