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

[coro.generator.promise] Ambigous specification of A in p17 #5938

Open
tomaszkam opened this issue Nov 7, 2022 · 0 comments
Open

[coro.generator.promise] Ambigous specification of A in p17 #5938

tomaszkam opened this issue Nov 7, 2022 · 0 comments

Comments

@tomaszkam
Copy link

tomaszkam commented Nov 7, 2022

The [coro.generator.promise] p17 defines A as follows:

Let A be

  • Allocator, if it is not void,
  • Alloc for the overloads with a template parameter Alloc, or
  • allocator<void> otherwise

However, it is possible that the conditions for both of the first bullets will be satisfied. In this case, the first bullet should be applied - the required expression imposes convertibility.

Proposed resolution:
Modify 17.1 by adding "otherwise" after coma in 17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant