852. unordered containers begin(n) mistakenly const

Section: 26.5 [unord] Status: CD1 Submitter: Robert Klarer Opened: 2008-06-12 Last modified: 2016-02-10

Priority: Not Prioritized

View all other issues in [unord].

View all issues with CD1 status.

Discussion:

In 3 of the four unordered containers the local begin member is mistakenly declared const:

local_iterator begin(size_type n) const;

Proposed resolution:

Change the synopsis in 26.5.4 [unord.map], 26.5.5 [unord.multimap], and 26.5.7 [unord.multiset]:

local_iterator begin(size_type n) const;