Hello JunMa,
JunMa <JunMa@linux.alibaba.com> wrote:
在 2019/11/17 下午6:28, Iain Sandoe 写道:
I find that the patches donot support 'for co_await'. And it is
quiet simple to implement range based 'for co_await' based on your
patches, since it's just need few more works on range for source to
source transform. Any reason for that?
If I understand your question correctly,
for example TS n4775, there was:
[stmt.stmt]
….
for co_await ( for-range-declaration : for-range-initializer )
statement
yes?
This was removed by a later committee resolution, and was *not* merged
to the C++20 Working Draft (I am currently working to n4835).
So, the reason it is not implemented in GCC at present, is that it is
not clear
exactly what form it might take if introduced in some future proposal
for
enhanced coroutines.
hope that answers the question,
thanks
Iain