Commit ca8ed481 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix compilation with boost versions older than 1.76

parent 3b1cbac6
......@@ -86,7 +86,11 @@ public:
template <class Dispatch>
CoroGenerator(Dispatch& dispatch)
: _coro(make_coro<coro_t::pull_type>(dispatch)),
#if (BOOST_VERSION >= 107600)
_iter(std::begin(*_coro)), _end(std::end(*_coro)), _first(true) {}
_iter(begin(*_coro)), _end(end(*_coro)), _first(true) {}
boost::python::object next()
if (_first)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment