-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Full name of submitter (unless configured in github; will be published with the issue): Jiang An
Reference (section label): [temp.deduct.decl]
Link to reflector thread (if any):
Issue description:
Currently [temp.deduct.decl] p1 only mentions operator new but not operator new[]. Perhaps we should handle operator new[] consistently.
Suggested resolution:
Modify [temp.deduct.decl] p1 as indicated:
- [...] This is also done to determine whether a deallocation function template specialization matches a placement
allocation function ([basic.stc.dynamic.deallocation], [expr.new]). In all these cases,operator newPis the type of the function template being considered as a potential match andAis either the function type from the declaration or the type of the deallocation function that would match the placementallocation function as described in [expr.new]. [...]operator new
Modify [temp.func.order] p1.3 as indicated:
(1.3) - when a placement
operator deletedeallocation function that is a function template specialization is selected to match a placementoperator newallocation function ([basic.stc.dynamic.deallocation], [expr.new]);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels