Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorManuel Drews2019-10-16 16:03:42 +0200
committerMartin Hořeňovský2019-10-26 20:52:09 +0200
commit4327baba400f6f8158c4d686135ba7fb6ba10d54 (patch)
tree64eb5d02d6236d2babcf3e3a5312e10c66a85737 /include
parent50cc14c94c972fc743afca92b22ad7bdc63c429a (diff)
downloadcatch3-4327baba400f6f8158c4d686135ba7fb6ba10d54.tar.gz
Enable `range` generator for floating point types
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_generators_specific.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/catch_generators_specific.hpp b/include/internal/catch_generators_specific.hpp
index f57d29b6..dee8e711 100644
--- a/include/internal/catch_generators_specific.hpp
+++ b/include/internal/catch_generators_specific.hpp
@@ -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));
}