aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constraint.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-09-27 11:25:51 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-09-27 11:59:53 +0100
commit614e5696d730a65998ff5b0373f905795a758dd6 (patch)
treee9e70d82b615bffeb186e73a7cb88c189ec4432c /gcc/cp/constraint.cc
parentb939a5cc4143908ddda4b85a848c313136ff6e0c (diff)
downloadgcc-614e5696d730a65998ff5b0373f905795a758dd6.zip
gcc-614e5696d730a65998ff5b0373f905795a758dd6.tar.gz
gcc-614e5696d730a65998ff5b0373f905795a758dd6.tar.bz2
libstdc++: Adjust deduction guides for static operator() [PR106651]
Adjust the deduction guides for std::function and std::packaged_task to work with static call operators. This finishes the implementation of P1169R4 for C++23. libstdc++-v3/ChangeLog: PR c++/106651 * include/bits/std_function.h (__function_guide_t): New alias template. [__cpp_static_call_operator] (__function_guide_static_helper): New class template. (function): Use __function_guide_t in deduction guide. * include/std/future (packaged_task): Use __function_guide_t in deduction guide. * testsuite/20_util/function/cons/deduction_c++23.cc: New test. * testsuite/30_threads/packaged_task/cons/deduction_c++23.cc: New test.
Diffstat (limited to 'gcc/cp/constraint.cc')
0 files changed, 0 insertions, 0 deletions