mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Fix using from_range with std::vector<>::const_iterator
This commit is contained in:
		@@ -91,7 +91,7 @@ public:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
template <typename InputIterator,
 | 
					template <typename InputIterator,
 | 
				
			||||||
          typename InputSentinel,
 | 
					          typename InputSentinel,
 | 
				
			||||||
          typename ResultType = typename std::iterator_traits<InputIterator>::value_type>
 | 
					          typename ResultType = std::remove_const_t<typename std::iterator_traits<InputIterator>::value_type>>
 | 
				
			||||||
GeneratorWrapper<ResultType> from_range(InputIterator from, InputSentinel to) {
 | 
					GeneratorWrapper<ResultType> from_range(InputIterator from, InputSentinel to) {
 | 
				
			||||||
    return GeneratorWrapper<ResultType>(Catch::Detail::make_unique<IteratorGenerator<ResultType>>(from, to));
 | 
					    return GeneratorWrapper<ResultType>(Catch::Detail::make_unique<IteratorGenerator<ResultType>>(from, to));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user