Skip to content

Commit

Permalink
Attempt to fix compile error on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
saraedum committed Nov 22, 2022
1 parent e683c69 commit 4d27c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/rx/ranges.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ struct iterator_range {

template <class C>
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 {
Expand Down Expand Up @@ -1149,7 +1149,7 @@ struct ZipRange {
static constexpr bool is_idempotent = (is_idempotent_v<Inputs> && ...);

template <class... Tx>
constexpr explicit ZipRange(std::tuple<Tx...>&& tuple) : inputs(tuple) {}
constexpr explicit ZipRange(std::tuple<Tx...>&& tuple) : inputs(std::move(tuple)) {}

[[nodiscard]] constexpr output_type get() const noexcept {
RX_ASSERT(!at_end());
Expand Down

0 comments on commit 4d27c17

Please sign in to comment.