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
[basic.stc.dynamic.deallocation] Use of incorrect grammar #3315
Comments
Yes, both occurrences of "instance" should be replaced by "specialization". |
Hm, that would result in allocation functions being templates, while deallocation functions would be functions. Perhaps it would be better for them to be congruent. |
I don't understand. The actual allocation/deallocation function is always a function (perhaps instantiated from a template). |
Sure, but the current spec refers to allocation functions as being templates:
Which isn't correct either |
There are two levels here: One is restrictions on the declaration of the allocation / deallocation function, which also applies to any function templates called "operator new" / "operator delete". [basic.stc.dynamic] has more problems, though: It specifies the name of global allocation/deallocation functions, but not of class member functions. In my view, we should apply a larger change here:
|
Editorial meeting: Agreed with larger change. Just call it "operator new" function. Give it a try. |
[basic.stc.dynamic.deallocation] p3 says:
and
"instance of a function template" here presumably should just say "function template" to match deallocation functions. Additionally, "template instance" is not a defined term in the standard, presumably it should be "function template specialization".
The text was updated successfully, but these errors were encountered: