This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++11 status.
Section: 24.3.9 [forward.list] Status: C++11 Submitter: Daniel Krügler Opened: 2009-12-12 Last modified: 2023-02-07
Priority: Not Prioritized
View all other issues in [forward.list].
View all issues with C++11 status.
Discussion:
I found that forward_list has only
forward_list(const forward_list<T,Allocator>& x); forward_list(forward_list<T,Allocator>&& x);
but misses
forward_list(const forward_list& x, const Allocator&); forward_list(forward_list&& x, const Allocator&);
Note to other reviewers: I also checked the container adaptors for similar inconsistencies, but as far as I can see these are already handled by the current active issues 1194 and 1199.
[ 2010-01-14 Moved to Tentatively Ready after 5 positive votes on c++std-lib. ]
Proposed resolution:
In [forwardlist]/3, class template forward_list synopsis change as indicated:
forward_list(const forward_list<T,Allocator>& x); forward_list(forward_list<T,Allocator>&& x); forward_list(const forward_list&, const Allocator&); forward_list(forward_list&&, const Allocator&);