Range-based for loops and ADL

前端 未结 1 2003
独厮守ぢ
独厮守ぢ 2021-01-18 09:24

The C++0x standard working draft states (section 6.5.4) the following about the begin() and end() calls that are implicit in a range-based for loop:

\

相关标签:
1条回答
  • 2021-01-18 09:49

    I first reported that this looked like a gcc bug to me. It now appears that even this part of the for-loop specification is unclear, and an inquiry has been opened on the committee.

    It still looks like the range-based for-loop rules are going to change very shortly:

    http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3257.pdf

    And I'm not sure which option listed in N3257 will be chosen.

    0 讨论(0)
提交回复
热议问题