mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Specialise removeConst for nullptr
This commit is contained in:
		 Phil Nash
					Phil Nash
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							180d9242f5
						
					
				
				
					commit
					b6e7c9bd7a
				
			| @@ -39,6 +39,9 @@ namespace Internal { | ||||
|  | ||||
|     template<typename T> | ||||
|     T& removeConst(T const &t) { return const_cast<T&>(t); } | ||||
| #ifdef CATCH_CONFIG_CPP11_NULLPTR | ||||
|     inline std::nullptr_t removeConst(std::nullptr_t) { return nullptr; } | ||||
| #endif | ||||
|  | ||||
|  | ||||
|     // So the compare overloads can be operator agnostic we convey the operator as a template | ||||
|   | ||||
		Reference in New Issue
	
	Block a user