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

Should/can Expects and Ensures be macros? #2182

Open
hsutter opened this issue Feb 21, 2024 · 2 comments
Open

Should/can Expects and Ensures be macros? #2182

hsutter opened this issue Feb 21, 2024 · 2 comments
Assignees

Comments

@hsutter
Copy link
Contributor

hsutter commented Feb 21, 2024

If so, should we change their names per Sean Parent's comment at microsoft/GSL#1032 ?

@hsutter
Copy link
Contributor Author

hsutter commented Jun 6, 2024

Editors call: We've been dragging our feet on this because Expects and Ensures were supposed to be temporary placeholders that would soon (in C++20) be made redundant by contracts. Now contracts has been targeting C++26 so we again have been waiting. Now that it looks like contracts may not make C++26 we need to find a solution (make them not macros, or make them not those popular names).

@carsonRadtke
Copy link

@BjarneStroustrup Is there any update here? We would like to address an open issue in GSL.

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

3 participants