28 Aug
2014
28 Aug
'14
6:32 a.m.
As per DR1442 (for C++11), the rule of range-based-for has been changed. ( http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1442 ) 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. Regards, Michel