diff options
Diffstat (limited to 'boost/coroutine2/detail/pull_coroutine.hpp')
-rw-r--r-- | boost/coroutine2/detail/pull_coroutine.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/boost/coroutine2/detail/pull_coroutine.hpp b/boost/coroutine2/detail/pull_coroutine.hpp index ff76bd3aac..c78750442e 100644 --- a/boost/coroutine2/detail/pull_coroutine.hpp +++ b/boost/coroutine2/detail/pull_coroutine.hpp @@ -66,7 +66,7 @@ public: bool operator!() const noexcept; - T get() const noexcept; + T get(); class iterator : public std::iterator< std::input_iterator_tag, typename std::remove_reference< T >::type > { private: @@ -126,11 +126,11 @@ public: iterator operator++( int) = delete; reference_t operator*() const { - return * c_->cb_->other->t; + return c_->cb_->get(); } pointer_t operator->() const { - return c_->cb_->other->t; + return std::addressof( c_->cb_->get() ); } }; @@ -179,7 +179,7 @@ public: bool operator!() const noexcept; - T & get() const noexcept; + T & get(); class iterator : public std::iterator< std::input_iterator_tag, typename std::remove_reference< T >::type > { private: @@ -239,11 +239,11 @@ public: iterator operator++( int) = delete; reference_t operator*() const { - return * c_->cb_->other->t; + return c_->cb_->get(); } pointer_t operator->() const { - return c_->cb_->other->t; + return std::addressof( c_->cb_->get() ); } }; |