no need for a generic param

master
Daniel Kolesa 2018-01-10 00:55:50 +01:00
parent 391f511131
commit 5646f8610b
1 changed files with 2 additions and 4 deletions

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