Section: 23.2 [container.requirements] Status: CD1 Submitter: Jens Maurer Opened: 2007-11-06 Last modified: 2016-01-28
Priority: Not Prioritized
View all other issues in [container.requirements].
View all issues with CD1 status.
Discussion:
23.2 [container.requirements] says:
-12- Objects passed to member functions of a container as rvalue references shall not be elements of that container. No diagnostic required.
A reference is not an object, but this sentence appears to claim so.
What is probably meant here:
An object bound to an rvalue reference parameter of a member function of a container shall not be an element of that container; no diagnostic required.
Proposed resolution:
Change 23.2 [container.requirements]:
-12-
Objects passed to member functions of a container as rvalue references shall not be elementsAn object bound to an rvalue reference parameter of a member function of a container shall not be an element of that container.;Nno diagnostic required.