mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-23 04:59:24 +00:00
Move all<int> to .cpp file to remove <limits> from common path
This commit is contained in:
parent
fdcd46420e
commit
92e25049cf
2 changed files with 8 additions and 6 deletions
|
@ -9,6 +9,7 @@
|
|||
#include "catch_random_number_generator.h"
|
||||
#include "catch_interfaces_capture.h"
|
||||
|
||||
#include <limits>
|
||||
#include <set>
|
||||
|
||||
namespace Catch {
|
||||
|
@ -40,6 +41,10 @@ namespace Generators {
|
|||
return getResultCapture().acquireGeneratorTracker( lineInfo );
|
||||
}
|
||||
|
||||
template<>
|
||||
auto all<int>() -> Generator<int> {
|
||||
return range( std::numeric_limits<int>::min(), std::numeric_limits<int>::max() );
|
||||
}
|
||||
|
||||
} // namespace Generators
|
||||
} // namespace Catch
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue