mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Enable range generator for floating point types
				
					
				
			This commit is contained in:
		 Manuel Drews
					Manuel Drews
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							50cc14c94c
						
					
				
				
					commit
					4327baba40
				
			| @@ -117,7 +117,7 @@ public: | ||||
|  | ||||
| template <typename T> | ||||
| GeneratorWrapper<T> range(T const& start, T const& end, T const& step) { | ||||
|     static_assert(std::is_integral<T>::value && !std::is_same<T, bool>::value, "Type must be an integer"); | ||||
|     static_assert(std::is_arithmetic<T>::value && !std::is_same<T, bool>::value, "Type must be numeric"); | ||||
|     return GeneratorWrapper<T>(pf::make_unique<RangeGenerator<T>>(start, end, step)); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user