Enable range generator for floating point types

This commit is contained in:
Manuel Drews authored and Martin Hořeňovský committed 2019-10-26 20:52:09 +02:00
1 parent 50cc14c94c
commit 4327baba40
7 files changed
+1399 -6

No files matched your search

@@ -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));
}