From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 184BC3953CE6; Wed, 21 Oct 2020 14:13:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 184BC3953CE6 From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/97512] Move std::ranges::subrange structured bindings stuff from to Date: Wed, 21 Oct 2020 14:13:05 +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: 11.0 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: redi 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Oct 2020 14:13:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97512 --- Comment #2 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:a186ab670e97c4c3883d96506655c4621e7c5515 commit r11-4188-ga186ab670e97c4c3883d96506655c4621e7c5515 Author: Jonathan Wakely Date: Wed Oct 21 14:40:54 2020 +0100 libstdc++: Make structured bindings always work for subranges [PR 97512] The definition of ranges::subrange was moved to the new header so that it could be used in without including the whole of . However, the tuple-like support that enables subrange to be used with structured bindings was left in . This is arguably conforming (to use a subrange you should include ) but it's inconvenient and probably confusing. This change makes the tuple-like support available whenever subrange itself is available. libstdc++-v3/ChangeLog: PR libstdc++/97512 * include/bits/ranges_util.h (tuple_size) (tuple_element): Move here from ... * include/std/ranges: ... here. * testsuite/std/ranges/subrange/97512.cc: New test.=