Created on 2012-10-05.00:00:00 last changed 131 months ago
Proposed resolution:
This wording is relative to N3376.
Change [container.adaptors.general] p1 as indicated:
-1- The headers <queue> and <stack> define the container adaptors queue, priority_queue, and stack.
These container adaptors meet the requirements for sequence containers.
[ 2013-09-29, Chicago ]
Apply to Working Paper
[ 2013-04-20, Bristol ]
Unanimous consensus that queue and stack are not meant to be sequences.
Decision: move to tentatively ready[ Daniel adds concrete wording. ]
The stack class template does not have an member type iterator, and therefore instantiations do not meet the general container requirements as described in [container.requirements.general]. But [container.adaptors.general] p1 says:
The headers <queue> and <stack> define the container adaptors queue, priority_queue, and stack. These container adaptors meet the requirements for sequence containers.
Since sequence containers is a subset of general containers, this imposes requirements on the container adaptors that are not satisfied.
Daniel Krügler: The wording change was performed as an editorial reorganization as requested by GB 116 occuring first in N3242, as a side-effect it does now make the previous implicit C++03 classification to [lib.sequences]/1 more obvious. As the NB comment noticed, the adaptors really are not sequences nor containers, so this wording needs to be fixed. The most simple way to realize that is to strike the offending sentence.
History | |||
---|---|---|---|
Date | User | Action | Args |
2014-02-20 13:20:35 | admin | set | status: wp -> c++14 |
2013-09-29 10:45:42 | admin | set | messages: + msg6660 |
2013-09-29 10:45:42 | admin | set | status: voting -> wp |
2013-09-23 13:24:31 | admin | set | status: ready -> voting |
2013-05-20 16:25:01 | admin | set | messages: + msg6511 |
2013-05-20 16:25:01 | admin | set | status: new -> ready |
2012-10-06 11:56:48 | admin | set | messages: + msg6155 |
2012-10-06 11:56:48 | admin | set | messages: + msg6154 |
2012-10-05 00:00:00 | admin | create |