diff --git a/include/rx/ranges.hpp b/include/rx/ranges.hpp index 116e818..6d6f5e4 100644 --- a/include/rx/ranges.hpp +++ b/include/rx/ranges.hpp @@ -468,7 +468,7 @@ struct iterator_range { template constexpr explicit iterator_range(const C& collection) noexcept - : current_(begin(collection)), end_(end(collection)) {} + : current_(std::begin(collection)), end_(std::end(collection)) {} constexpr iterator_range(It begin, EndIt end) noexcept : current_(begin), end_(end) {} constexpr void next() noexcept { @@ -1149,7 +1149,7 @@ struct ZipRange { static constexpr bool is_idempotent = (is_idempotent_v && ...); template - constexpr explicit ZipRange(std::tuple&& tuple) : inputs(tuple) {} + constexpr explicit ZipRange(std::tuple&& tuple) : inputs(std::move(tuple)) {} [[nodiscard]] constexpr output_type get() const noexcept { RX_ASSERT(!at_end());