mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	BitField: Add an explicit evaluation method.
Sometimes it can be beneficial to use this in places where an explicit cast needs to happen otherwise. By using the evaluation method, it's not necessary anymore to explicitly write the underlying type in this case.
This commit is contained in:
		
							parent
							
								
									584f7aced5
								
							
						
					
					
						commit
						47a001722d
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -131,6 +131,11 @@ public: | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     __forceinline operator T() const |     __forceinline operator T() const | ||||||
|  |     { | ||||||
|  |         return Value(); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     __forceinline T Value() const | ||||||
|     { |     { | ||||||
|         if (std::numeric_limits<T>::is_signed) |         if (std::numeric_limits<T>::is_signed) | ||||||
|         { |         { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue