Title
Are deleted functions implicitly noexcept?
Status
nad
Section
9.5.3 [dcl.fct.def.delete]
Submitter
Daniel Krügler

Created on 2010-11-10.00:00:00 last changed 170 months ago

Messages

Date: 2010-11-15.00:00:00

Rationale (November, 2010):

Any reference to a deleted function is ill-formed, so it doesn't really matter whether they are noexcept or not.

Date: 2022-11-20.07:54:16

It would seem intuitively that a deleted function cannot throw an exception, but 9.5.3 [dcl.fct.def.delete] does not mention that. This could conceivably be useful in SFINAE contexts.

History
Date User Action Args
2010-11-29 00:00:00adminsetmessages: + msg3215
2010-11-10 00:00:00admincreate