Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downlevel standard coroutine support #1730

Merged
merged 4 commits into from
Mar 12, 2021

Commits on Mar 11, 2021

  1. Downlevel standard coroutine support

    Allow `<coroutine>` to be included if `_DOWNLEVEL_COROUTINES_SUPPORTED`
    is defined even if `__cpp_lib_coroutine` is not. Allows use of standard
    coroutines in C++14 and C++17 modes with a compiler that permits it.
    Comparison operators are explicitly defined instead of <=> in these
    modes.
    
    Corresponding compiler changes are expected to come in 16.10.
    joemmett committed Mar 11, 2021
    Configuration menu
    Copy the full SHA
    5fa1f91 View commit details
    Browse the repository at this point in the history
  2. Split long line

    joemmett committed Mar 11, 2021
    Configuration menu
    Copy the full SHA
    d6f0f34 View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2021

  1. Update tests/std/tests/P0912R5_coroutine/env.lst

    Add /permissive- to the /Zc:preprocessor config.
    
    Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
    joemmett and StephanTLavavej authored Mar 12, 2021
    Configuration menu
    Copy the full SHA
    c7446b8 View commit details
    Browse the repository at this point in the history
  2. Rework downlevel coroutines:

    - Move detection of downlevel coroutines to yvals_core.h in
      definition of __cpp_lib_coroutine.
    - Rework inclusion of <coroutine> in terms of __cpp_lib_coroutine,
    guard <compare> inclusion and spaceship definition in _HAS_CXX20.
    - C++14-ify the coroutine test.
    joemmett committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    378a565 View commit details
    Browse the repository at this point in the history