Skip to content

Commit

Permalink
fixup! WIP [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebionne committed May 20, 2022
1 parent 1668477 commit f27137b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions include/boost/gil/step_iterator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,19 @@ class step_iterator_adaptor

// It is really common for iterator adaptors to have a base() member
// function that returns the adapted iterator.
int* base() const { return it_; }
Iterator base() const { return it_; }

protected:
Iterator it_;
SFn _step_fn;
SFn _step_fn;

constexpr Iterator& base_reference() noexcept { return it_; }
constexpr Iterator const& base_reference() const noexcept { return it_; }

private:
// Provide access to these private members.
friend boost::stl_interfaces::access;

constexpr int*& base_reference() noexcept { return it_; }
constexpr int* base_reference() const noexcept { return it_; }

//void increment() { _step_fn.advance(this->base_reference(),1); }
//void decrement() { _step_fn.advance(this->base_reference(),-1); }
constexpr void advance(base_difference_type d) { _step_fn.advance(this->base_reference(),d); }
Expand Down

0 comments on commit f27137b

Please sign in to comment.