forward_list::erase_after
should not be allowed to throwSection: 23.2 [container.requirements] Status: C++11 Submitter: DIN Opened: 2010-08-25 Last modified: 2016-01-28
Priority: Not Prioritized
View all other issues in [container.requirements].
View all issues with C++11 status.
Discussion:
Addresses DE-21
23.2.1/11 provides a general no-throw guarantee for erase() container functions, exceptions from this are explicitly mentioned for individual containers. Because of its different name, forward_list's erase_after() function is not 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 both
erase_after
overloads in 23.3.3.4, [forwardlist.modifiers].