noexceptfunctions. My advice is "Declare functions
noexceptwhenever possible." Some people appear to be concerned that this could be misconstrued as advocating
noexcepteven when it makes no sense, but I think the advice is a reasonable conclusion to the Item that supports it. I posted a draft version of that Item in early February, but I've revised the draft since then, and I'm making the current draft available now:
The current draft of "Declare functions
I'd be interested to hear what you think of (1) the wording of the Item title and (2) the contents of the Item itself. I'd also be interested to know what you think about these questions:
- Should I say that
constexprfunctions are normally good candidates for
- Do lambdas get special consideration, or should they, too be declared
noexceptwhenever possible. If they're special, why?
inlinefunctions get special consideration, or should they also be declared
noexceptwhenever possible? If they're special, how so?