mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	common/math_util: Make Rectangle's constructors constexpr
Allows objects that contain rectangle instances to be constexpr constructible as well.
This commit is contained in:
		
							parent
							
								
									bf8f7f0ab6
								
							
						
					
					
						commit
						8d169a4bfa
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -18,9 +18,9 @@ struct Rectangle { | |||
|     T right{}; | ||||
|     T bottom{}; | ||||
| 
 | ||||
|     Rectangle() = default; | ||||
|     constexpr Rectangle() = default; | ||||
| 
 | ||||
|     Rectangle(T left, T top, T right, T bottom) | ||||
|     constexpr Rectangle(T left, T top, T right, T bottom) | ||||
|         : left(left), top(top), right(right), bottom(bottom) {} | ||||
| 
 | ||||
|     T GetWidth() const { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue