r268878 - in /trunk/libstdc++-v3: ChangeLog doc...
redi@gcc.gnu.org
redi@gcc.gnu.org
Thu Feb 14 14:10:00 GMT 2019
Author: redi
Date: Thu Feb 14 14:10:19 2019
New Revision: 268878
URL: https://gcc.gnu.org/viewcvs?rev=268878&root=gcc&view=rev
Log:
LWG 2537 fix priority_queue constructors to establish invariant
This change is safe to make now (in stage 4), because the constructors
are currently incorrect and unusable (unless the supplied container
already contains a heap, in which case the new make_heap calls are
redundant but harmless).
* doc/xml/manual/intro.xml: Document LWG 2537 status.
* include/bits/stl_queue.h
(priority_queue(const Compare&, const Container&, const Alloc&))
(priority_queue(const Compare&, Container&&, const Alloc&)): Call
make_heap.
* testsuite/23_containers/priority_queue/dr2537.cc: New test.
Added:
trunk/libstdc++-v3/testsuite/23_containers/priority_queue/dr2537.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/doc/xml/manual/intro.xml
trunk/libstdc++-v3/include/bits/stl_queue.h
More information about the Libstdc++-cvs
mailing list