2675. register_callback can fail

Section: 30.5.3.6 [ios.base.callback] Status: New Submitter: David Krauss Opened: 2016-03-14 Last modified: 2016-05-02

Priority: 3

View all issues with New status.

Discussion:

register_callback allocates memory and so it can fail, but the case is unspecified. libc++ sets badbit, which is consistent with iword and pword. libstdc++ throws std::bad_alloc.

Proposed resolution: