https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106651

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:614e5696d730a65998ff5b0373f905795a758dd6

commit r13-2897-g614e5696d730a65998ff5b0373f905795a758dd6
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Tue Sep 27 11:25:51 2022 +0100

    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.

Reply via email to