Title
exception-specification of replacement global new
Status
nad
Section
6.7.5.5 [basic.stc.dynamic]
Submitter
Steve Clamage

Created on 2014-06-18.00:00:00 last changed 114 months ago

Messages

Date: 2014-11-15.00:00:00

Rationale (November, 2014):

The specification intentionally makes such replacement functions ill-formed.

Date: 2022-11-20.07:54:16

Some implementations accept code like

  #include <cstddef> // to get size_t
  void* operator new(std::size_t) noexcept { ... }

This declaration conflicts with the predeclaration of operator new with no exception-specification.

See also issue 967.

History
Date User Action Args
2014-11-24 00:00:00adminsetmessages: + msg5268
2014-06-18 00:00:00admincreate