From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EF7063857C44; Thu, 9 Mar 2023 18:35:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF7063857C44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678386927; bh=W40T5FVG0Lta6dngVIos7mEQGuDhz1oZRqWT/dnWCFQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=hFpsoZr7elMq+kZrZDscciNkP2OWbVR5ZX1h+K3/7uI/asNI+ZuVABpEL+z1cEVOk GnMutmmqK4ZhG9jhlR5Ij2+UPpyfUdXIZVFcQUEIJfGwQmdi//PnF6haHPLL5WMq45 W3X8LeeuBn1R45vjgf9LdGjaM8nCmAvd+IzwIJng= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108362] views::istream is SFINAE-unfriendly Date: Thu, 09 Mar 2023 18:35:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: rejects-valid 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: ppalka 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=3D108362 --- Comment #2 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:95827e1b9f7d5dd5a697bd60292e3876a7e8c15c commit r13-6560-g95827e1b9f7d5dd5a697bd60292e3876a7e8c15c Author: Patrick Palka Date: Thu Mar 9 13:35:04 2023 -0500 libstdc++: Make views::single/iota/istream SFINAE-friendly [PR108362] PR libstdc++/108362 libstdc++-v3/ChangeLog: * include/std/ranges (__detail::__can_single_view): New concept. (_Single::operator()): Constrain it. Move [[nodiscard]] to the end of the function declarator. (__detail::__can_iota_view): New concept. (_Iota::operator()): Constrain it. Move [[nodiscard]] to the end of the function declarator. (__detail::__can_istream_view): New concept. (_Istream::operator()): Constrain it. Move [[nodiscard]] to the end of the function declarator. * testsuite/std/ranges/iota/iota_view.cc (test07): New test. * testsuite/std/ranges/istream_view.cc (test08): New test. * testsuite/std/ranges/single_view.cc (test07): New test.=