Enable range generator for floating point types

This commit is contained in:
Manuel Drews
2019-10-16 16:03:42 +02:00
committed by Martin Hořeňovský
parent 50cc14c94c
commit 4327baba40
7 changed files with 1399 additions and 6 deletions

View File

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