r271582 - in /trunk/libstdc++-v3: ChangeLog doc...
redi@gcc.gnu.org
redi@gcc.gnu.org
Thu May 23 21:40:00 GMT 2019
Author: redi
Date: Thu May 23 21:40:56 2019
New Revision: 271582
URL: https://gcc.gnu.org/viewcvs?rev=271582&root=gcc&view=rev
Log:
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.
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/doc/xml/manual/evolution.xml
trunk/libstdc++-v3/doc/xml/manual/intro.xml
trunk/libstdc++-v3/include/std/future
trunk/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc.cc
trunk/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc2.cc
trunk/libstdc++-v3/testsuite/30_threads/packaged_task/cons/alloc_min.cc
trunk/libstdc++-v3/testsuite/30_threads/packaged_task/uses_allocator.cc
More information about the Libstdc++-cvs
mailing list