mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Fix warning in catch_unique_ptr::bool()
				
					
				
			This commit is contained in:
		 Tim Lyon
					Tim Lyon
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							ccabd4de89
						
					
				
				
					commit
					fbfd13501c
				
			| @@ -92,7 +92,7 @@ namespace Detail { | ||||
|         } | ||||
|  | ||||
|         explicit operator bool() const { | ||||
|             return m_ptr; | ||||
|             return m_ptr != nullptr; | ||||
|         } | ||||
|  | ||||
|         friend void swap(unique_ptr& lhs, unique_ptr& rhs) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user