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

[new.delete] Multiple \requires elements for one function #1145

Closed
jlaire opened this issue Nov 29, 2016 · 1 comment
Closed

[new.delete] Multiple \requires elements for one function #1145

jlaire opened this issue Nov 29, 2016 · 1 comment

Comments

@jlaire
Copy link

jlaire commented Nov 29, 2016

A few function descriptions contain multiple \requires elements. I think there should be only one that lists all preconditions. that's the way it is in most of the standard.

[new.delete.single] void operator delete(void* ptr) noexcept;
[new.delete.single] void operator delete(void* ptr, const std::nothrow_t&) noexcept;
[new.delete.array] void operator delete[](void* ptr) noexcept;
[new.delete.array] void operator delete[](void* ptr, const std::nothrow_t&) noexcept;

@jlaire
Copy link
Author

jlaire commented Nov 29, 2016

Actually there quite a few instances of this, and some of the other elements can also appear more than once. It's not a problem.

@jlaire jlaire closed this as completed Nov 29, 2016
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