Title
ios_base never reclaims memory for iarray and parray
Status
new
Section
[ios.base.cons]
Submitter
Alisdair Meredith

Created on 2020-04-26.00:00:00 last changed 1 month ago

Messages

Date: 2020-04-26.15:54:50

Proposed resolution:

This wording is relative to N4861.

  1. Modify [ios.base.cons] as indicated:

    [Drafting note: Wording modeled on container requirements]

    ~ios_base();
    

    -2- Effects: Calls each registered callback pair (fn, idx) ([ios.base.callback]) as (*fn)(erase_event, *this, idx) at such time that any ios_base member function called from within fn has well-defined results. Then, any memory obtained is deallocated.

Date: 2020-04-26.00:00:00

According to [ios.base.storage] the class ios_base allocates memory, represented by two exposition-only pointers, iarray and parray in response to calls to iword and pword. However, the specification for the destructor in [ios.base.cons] says nothing about reclaiming any allocated memory.

History
Date User Action Args
2020-04-26 15:54:50adminsetmessages: + msg11238
2020-04-26 00:00:00admincreate