On 22/04/20 19:44 +0100, Iain Sandoe wrote:
Hi,
this is a bit of ‘housekeeping’ bringing the coroutines library header into
line with the C++20 DIS.
Note that we allow coroutines on C++14+ (probably they would work on
C++11 too, but that’s untested). So the <version> header reflects this by
exporting the __cpp_lib_coroutine define from then,
Tested on x86_64-darwin16 so far,
OK for master after regstrap on x86_64-Linux?
thanks
Iain
=====
Add '__cpp_lib_coroutine' defined to 201902L per n4861 to <coroutine>
Likewise to <version>
Update the inline namespace to __n4861.
libstdc++-v3/ChangeLog:
2020-04-22 Iain Sandoe <i...@sandoe.co.uk>
* include/std/coroutine: Update the inline namespace to __n4861.
Add the __cpp_lib_coroutine define, set to 201902L.
* include/std/version: Add __cpp_lib_coroutine, set to 201902L.
The libstdc++ parts are OK, and I suppose the testsuite changes don't
really need approval because they follow from the libstdc++ parts and
so are "obvious".
Thanks.