]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Make std::function deduction guide support explicit object functions ...
authorJonathan Wakely <jwakely@redhat.com>
Fri, 2 Feb 2024 10:03:12 +0000 (10:03 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 2 Feb 2024 13:54:02 +0000 (13:54 +0000)
commit6f75149488b74ae696788b8761d6fcfa754a0af7
tree5b893b5bc866c46ecd46aaa0bf2a8cea2aaef859
parentf929293589009f82d19d6df447af6f7e7b984107
libstdc++: Make std::function deduction guide support explicit object functions [PR113335]

This makes the deduction guides for std::function and std::packaged_task
work for explicit object member functions, i.e. "deducing this", as per
LWG 3617.

libstdc++-v3/ChangeLog:

PR libstdc++/113335
* include/bits/std_function.h (__function_guide_helper): Add
partial specialization for explicit object member functions, as
per LWG 3617.
* testsuite/20_util/function/cons/deduction_c++23.cc: Check
explicit object member functions.
* testsuite/30_threads/packaged_task/cons/deduction_c++23.cc:
Likewise.
libstdc++-v3/include/bits/std_function.h
libstdc++-v3/testsuite/20_util/function/cons/deduction_c++23.cc
libstdc++-v3/testsuite/30_threads/packaged_task/cons/deduction_c++23.cc