This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++14 status.
Section: 184.108.40.206 [forward.list.ops] Status: C++14 Submitter: Nicolai Josuttis Opened: 2012-01-15 Last modified: 2023-02-07
Priority: Not Prioritized
View all other issues in [forward.list.ops].
View all issues with C++14 status.
Sub-clause 220.127.116.11 [list.ops], p24 states for lists:
The behavior is undefined if this->get_allocator() != x.get_allocator().
But there is nothing like that for forward lists in [forwardlist.ops], although I would expect the same undefined behavior there.
Move to Ready.
[2012, Portland: applied to WP]
This wording is relative to the FDIS.
Add a new paragraph after [forwardlist.ops] p19 as indicated:
void merge(forward_list<T,Allocator>& x); void merge(forward_list<T,Allocator>&& x); template <class Compare> void merge(forward_list<T,Allocator>& x, Compare comp); template <class Compare> void merge(forward_list<T,Allocator>&& x, Compare comp);
[…]-19- Effects: […]