From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2CFD13858438; Tue, 27 Sep 2022 11:00:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CFD13858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664276401; bh=04phyasDGZ5plYk5eEqmwYDEruHb6Iba5MRnQzijkf0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hybSYOTbrQyp8ztqfg7prbJvSHLBxj0vc3eNyGV/+ToLcXndZB2jpHP7aaSFUHrZf BYKxvwsodOfQJB3Yw8hgCDtan5ddCkFWCbhs3DLMuXYrndcRdcqr7bL7ka+GNrEbhq 1zPMAETb1vWC9F+syrNVthaqa0Ef9N2eupPNfFLw= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106651] [C++23] P1169 - static operator() Date: Tue, 27 Sep 2022 11:00:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106651 --- Comment #4 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:614e5696d730a65998ff5b0373f905795a758dd6 commit r13-2897-g614e5696d730a65998ff5b0373f905795a758dd6 Author: Jonathan Wakely 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.=