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
[expr.const] p5 neither allocation nor deallocation function is a constexpr function #4947
Comments
[expr.new]:
|
Nothing to see here, I guess. |
@cpplearner @jensmaurer Ok, for "allocation function", it is omitted by [expr.new] p14, however, how about "deallocation function"? there is no special rule that omits it during the evaluation of a constant expression. |
@jensmaurer Should we also give a similar special rule in [expr.delete]?
|
Not necessary. If the call to the allocation function is omitted, we also omit the call to the deallocation function for allocations so treated. |
I wonder which rule specifies that "If the call to the allocation function is omitted, we also omit the call to the deallocation function for allocations"? |
[expr.delete] p7 bullets |
Thanks. I see
|
The intent of [expr.const#5.17] and [expr.const#5.18] is to make
#1
and#2
be usable in constant expressions. However, regardless of invocation of allocation or deallocation function, they all violate [expr.const#5.2]They are contradictory.
Proposal:
The text was updated successfully, but these errors were encountered: