LWG 2921 remove packaged_task constructors taking allocators
authorJonathan Wakely <jwakely@redhat.com>
Thu, 23 May 2019 21:40:56 +0000 (22:40 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 23 May 2019 21:40:56 +0000 (22:40 +0100)
commit9a0af7e3fb425ae2c0e044d044feb81ef493ce2c
treea3d1f6bdc1b3b0ce8e8352e0048a022a8bee7691
parentaa992ce717568eb88b324d39429e52df04a42eb1
LWG 2921 remove packaged_task constructors taking allocators

* doc/xml/manual/evolution.xml: Document LWG DR 2921 change.
* doc/xml/manual/intro.xml: Likewise.
* include/std/future (__create_task_state): Add default arguments
to make providing an allocator optional.
(packaged_task::packaged_task(F&&)): Call __create_task_state directly
instead of delegating to another constructor.
(packaged_task::packaged_task(allocator_arg_t, const A&, ...)): Do not
define allocator-extended constructors for C++17 and later.
* testsuite/30_threads/packaged_task/cons/alloc.cc: Only run test for
C++11 and C++14.
* testsuite/30_threads/packaged_task/cons/alloc2.cc: Likewise.
* testsuite/30_threads/packaged_task/cons/alloc_min.cc: Likewise.
* testsuite/30_threads/packaged_task/uses_allocator.cc: Likewise.

From-SVN: r271582
libstdc++-v3/ChangeLog
libstdc++-v3/doc/xml/manual/evolution.xml
libstdc++-v3/doc/xml/manual/intro.xml
libstdc++-v3/include/std/future
libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc
libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc2.cc
libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc_min.cc
libstdc++-v3/testsuite/30_threads/packaged_task/uses_allocator.cc