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

Created on 2020-04-26.00:00:00 last changed 12 months ago

Messages

Date: 2020-11-09.21:40: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-11-09.00:00:00

[ 2020-11-09 Approved In November virtual meeting. Status changed: Tentatively Ready → WP. ]

Date: 2020-07-15.00:00:00

[ 2020-07-17; Reflector prioritization ]

Set priority to 0 and status to Tentatively Ready after six votes in favour during reflector discussions.

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
2023-11-22 15:47:43adminsetstatus: wp -> c++23
2020-11-09 21:40:50adminsetmessages: + msg11573
2020-11-09 21:40:50adminsetstatus: ready -> wp
2020-07-17 22:37:26adminsetmessages: + msg11375
2020-07-17 22:37:26adminsetstatus: new -> ready
2020-04-26 15:54:50adminsetmessages: + msg11238
2020-04-26 00:00:00admincreate