no need for a generic param

This commit is contained in:
q66 2018-01-10 00:55:50 +01:00
parent 391f511131
commit 5646f8610b

View file

@ -1148,14 +1148,12 @@ inline auto enumerate() {
}
/** @brief A pipeable version of ostd::input_range::take(). */
template<typename T>
inline auto take(T n) {
inline auto take(std::size_t n) {
return [n](auto &obj) { return obj.take(n); };
}
/** @brief A pipeable version of ostd::input_range::chunks(). */
template<typename T>
inline auto chunks(T n) {
inline auto chunks(std::size_t n) {
return [n](auto &obj) { return obj.chunks(n); };
}