mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	common/math_util: Simplify std::make_signed usages to std::make_signed_t
Gets rid of the need to use typename to access the ::type alias.
This commit is contained in:
		
							parent
							
								
									8d169a4bfa
								
							
						
					
					
						commit
						d37c826097
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -24,10 +24,10 @@ struct Rectangle { | |||
|         : left(left), top(top), right(right), bottom(bottom) {} | ||||
| 
 | ||||
|     T GetWidth() const { | ||||
|         return std::abs(static_cast<typename std::make_signed<T>::type>(right - left)); | ||||
|         return std::abs(static_cast<std::make_signed_t<T>>(right - left)); | ||||
|     } | ||||
|     T GetHeight() const { | ||||
|         return std::abs(static_cast<typename std::make_signed<T>::type>(bottom - top)); | ||||
|         return std::abs(static_cast<std::make_signed_t<T>>(bottom - top)); | ||||
|     } | ||||
|     Rectangle<T> TranslateX(const T x) const { | ||||
|         return Rectangle{left + x, top, right + x, bottom}; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue