This page is a snapshot from the LWG issues list, see theLibrary Active Issues List for more information and the meaning ofC++11 status.
forward_list::erase_after should not be allowed to throwSection: 23.2[container.requirements]Status:C++11Submitter: DINOpened: 2010-08-25Last modified: 2016-01-28
Priority:Not Prioritized
View all otherissues in [container.requirements].
View all issues withC++11 status.
Discussion:
Addresses DE-21
23.2.1/11 provides a general no-throw guarantee forerase() container functions, exceptions from this areexplicitly mentioned for individual containers. Because ofits different name, forward_list's erase_after() function isnot ruled by this but should so.
[Resolved in Rapperswil by a motion to directly apply the words from the ballot comment in N3102.]
Proposed resolution:
Add a "Throws: Nothing" clause to botherase_after overloads in 23.3.3.4, [forwardlist.modifiers].