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 02:32:27

As per DR1442 (for C++11), the rule of range-based-for has been changed.
( )

The new rule does not add namespace `std` as an associated namespace.
So `begin` and `end` should be defined as either

  - member functions, or
  - as free functions in the enclosing namespaces (e.g. `boost::coroutines`).

Recent gcc and clang implemented the new rule.


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