Skip to content

Commit 436e1db

Browse files
committed
Revert "Cease dependence on Range"
This reverts commit 0c556bb. see #44 (One test fails to compile after boostorg/coroutine submodule updated)
1 parent 0c556bb commit 436e1db

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

include/boost/coroutine/asymmetric_coroutine.hpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <boost/assert.hpp>
1515
#include <boost/config.hpp>
1616
#include <boost/move/move.hpp>
17+
#include <boost/range.hpp>
1718
#include <boost/throw_exception.hpp>
1819
#include <boost/utility/explicit_operator_bool.hpp>
1920

@@ -2354,19 +2355,12 @@ end( push_coroutine< R > & c)
23542355

23552356
}
23562357

2357-
// forward declaration of Boost.Range traits to break dependency on it
2358-
template<typename C, typename Enabler>
2359-
struct range_mutable_iterator;
2360-
2361-
template<typename C, typename Enabler>
2362-
struct range_const_iterator;
2363-
23642358
template< typename Arg >
2365-
struct range_mutable_iterator< coroutines::push_coroutine< Arg >, void >
2359+
struct range_mutable_iterator< coroutines::push_coroutine< Arg > >
23662360
{ typedef typename coroutines::push_coroutine< Arg >::iterator type; };
23672361

23682362
template< typename R >
2369-
struct range_mutable_iterator< coroutines::pull_coroutine< R >, void >
2363+
struct range_mutable_iterator< coroutines::pull_coroutine< R > >
23702364
{ typedef typename coroutines::pull_coroutine< R >::iterator type; };
23712365

23722366
}

0 commit comments

Comments
 (0)