Boost logo

Boost Users :

Subject: Re: [Boost-users] Cannot use Boost.Croutines with range based for
From: Michel Morin (mimomorin_at_[hidden])
Date: 2014-08-28 14:07:11

Oliver Kowalke wrote:
>> For push_coroutine/pull_coroutine, try using boost::begin/end.
> and why not std::begin()? should be legal for c++11

`std::begin` calls member function `begin`:

  template <class C> auto begin(C& c) -> decltype(c.begin())
      return c.begin();

But `push_coroutine`/`pull_coroutine` do not have member function `begin`,
and so `std::begin` is not defined for them.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at