PR77528 add default constructors for container adaptors
authorJonathan Wakely <jwakely@redhat.com>
Tue, 10 Jan 2017 17:30:20 +0000 (17:30 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 10 Jan 2017 17:30:20 +0000 (17:30 +0000)
commitd2e1d4b71387f5fbcf7198f05ddeb39e38b3d511
treeeec6350cf193eac941b657624a89f5b22b96b405
parent034afd02315485c0b548f6d5da2709057fb494cb
PR77528 add default constructors for container adaptors

PR libstdc++/77528
* include/bits/stl_queue.h (queue::c): Add default member initializer.
(queue::queue()): Add constructor and define as defaulted.
(queue::queue(_Sequence&&)): Remove default argument.
(priority_queue::c, priority_queue::comp): Add default member
initializers.
(priority_queue::priority_queue()): Add constructor and define as
defaulted.
(priority_queue::priority_queue(const _Compare&, _Sequence&&)):
Remove default argument for first parameter.
* include/bits/stl_stack.h (stack::c): Add default member initializer.
(stack::stack()): Add constructor and define as defaulted.
(stack::stack(const _Sequence&)): Remove default argument.
* testsuite/23_containers/priority_queue/requirements/
explicit_instantiation/1.cc: Test explicit instantiation with
non-DefaultConstructible sequence.
* testsuite/23_containers/priority_queue/77528.cc: New test.
* testsuite/23_containers/priority_queue/requirements/
explicit_instantiation/1_c++0x.cc: Replace with 1_c++98.cc.
* testsuite/23_containers/queue/77528.cc: New test.
* testsuite/23_containers/queue/requirements/explicit_instantiation/
1.cc: Test explicit instantiation with non-DefaultConstructible
sequence.
* testsuite/23_containers/queue/requirements/explicit_instantiation/
1_c++0x.cc: Replace with 1_c++98.cc.
* testsuite/23_containers/stack/77528.cc: New test.
* testsuite/23_containers/stack/requirements/explicit_instantiation/
1.cc: Test explicit instantiation with non-DefaultConstructible
sequence.
* testsuite/23_containers/stack/requirements/explicit_instantiation/
1_c++0x.cc: Replace with 1_c++98.cc.

From-SVN: r244278
15 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_queue.h
libstdc++-v3/include/bits/stl_stack.h
libstdc++-v3/testsuite/23_containers/priority_queue/77528.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/priority_queue/requirements/explicit_instantiation/1.cc
libstdc++-v3/testsuite/23_containers/priority_queue/requirements/explicit_instantiation/1_c++0x.cc [deleted file]
libstdc++-v3/testsuite/23_containers/priority_queue/requirements/explicit_instantiation/1_c++98.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/queue/77528.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/queue/requirements/explicit_instantiation/1.cc
libstdc++-v3/testsuite/23_containers/queue/requirements/explicit_instantiation/1_c++0x.cc [deleted file]
libstdc++-v3/testsuite/23_containers/queue/requirements/explicit_instantiation/1_c++98.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/stack/77528.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/stack/requirements/explicit_instantiation/1.cc
libstdc++-v3/testsuite/23_containers/stack/requirements/explicit_instantiation/1_c++0x.cc [deleted file]
libstdc++-v3/testsuite/23_containers/stack/requirements/explicit_instantiation/1_c++98.cc [new file with mode: 0644]