Skip to content

Commit

Permalink
Revert "Cease dependence on Range"
Browse files Browse the repository at this point in the history
This reverts commit a3e511f.
  • Loading branch information
olk committed Mar 30, 2020
1 parent 143edd3 commit 9c73b2f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions include/boost/coroutine/asymmetric_coroutine.hpp
Expand Up @@ -14,6 +14,7 @@
#include <boost/assert.hpp>
#include <boost/config.hpp>
#include <boost/move/move.hpp>
#include <boost/range.hpp>
#include <boost/throw_exception.hpp>
#include <boost/utility/explicit_operator_bool.hpp>

Expand Down Expand Up @@ -2390,19 +2391,12 @@ end( push_coroutine< R > & c)

}

// forward declaration of Boost.Range traits to break dependency on it
template<typename C, typename Enabler>
struct range_mutable_iterator;

template<typename C, typename Enabler>
struct range_const_iterator;

template< typename Arg >
struct range_mutable_iterator< coroutines::push_coroutine< Arg >, void >
struct range_mutable_iterator< coroutines::push_coroutine< Arg > >
{ typedef typename coroutines::push_coroutine< Arg >::iterator type; };

template< typename R >
struct range_mutable_iterator< coroutines::pull_coroutine< R >, void >
struct range_mutable_iterator< coroutines::pull_coroutine< R > >
{ typedef typename coroutines::pull_coroutine< R >::iterator type; };

}
Expand Down

0 comments on commit 9c73b2f

Please sign in to comment.