PR77528 partially revert r244278 and define default constructors
authorJonathan Wakely <jwakely@redhat.com>
Thu, 12 Jan 2017 17:28:36 +0000 (17:28 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 12 Jan 2017 17:28:36 +0000 (17:28 +0000)
commita1f009a65fd70df0962e0d5b94aba313520df357
treecf31d11b0fdf99bd93175ef05c7d44353ea12594
parent27282dadbfc2c0a23ca3a2c285b9a71e0e5376d8
PR77528 partially revert r244278 and define default constructors

PR libstdc++/77528
* include/bits/stl_queue.h (queue, priority_queue): Remove default
member-initializers and define default constructors as templates with
constraints.
* include/bits/stl_stack.h (stack): Likewise.
* testsuite/23_containers/priority_queue/requirements/constructible.cc:
New.
* testsuite/23_containers/priority_queue/requirements/
explicit_instantiation/1.cc: Test more instantiations.
* testsuite/23_containers/priority_queue/requirements/
explicit_instantiation/1_c++98.cc: Likewise.
* testsuite/23_containers/queue/requirements/constructible.cc: New.
* testsuite/23_containers/stack/requirements/constructible.cc: New.

From-SVN: r244374
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_queue.h
libstdc++-v3/include/bits/stl_stack.h
libstdc++-v3/testsuite/23_containers/priority_queue/requirements/constructible.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++98.cc
libstdc++-v3/testsuite/23_containers/queue/requirements/constructible.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/stack/requirements/constructible.cc [new file with mode: 0644]