public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/111055] New: [C++23] Implement P1206R7, Conversions from ranges to containers
@ 2023-08-17 22:03 redi at gcc dot gnu.org
2023-08-17 22:04 ` [Bug libstdc++/111055] " redi at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2023-08-17 22:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055
Bug ID: 111055
Summary: [C++23] Implement P1206R7, Conversions from ranges to
containers
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: redi at gcc dot gnu.org
Blocks: 106749
Target Milestone: ---
https://wg21.link/P1206R7
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106749
[Bug 106749] Implement C++23 library features
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/111055] [C++23] Implement P1206R7, Conversions from ranges to containers
2023-08-17 22:03 [Bug libstdc++/111055] New: [C++23] Implement P1206R7, Conversions from ranges to containers redi at gcc dot gnu.org
@ 2023-08-17 22:04 ` redi at gcc dot gnu.org
2023-09-18 17:19 ` redi at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2023-08-17 22:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Blocks| |111053
Last reconfirmed| |2023-08-17
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111053
[Bug 111053] std::ranges::copy is missing important optimizations
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/111055] [C++23] Implement P1206R7, Conversions from ranges to containers
2023-08-17 22:03 [Bug libstdc++/111055] New: [C++23] Implement P1206R7, Conversions from ranges to containers redi at gcc dot gnu.org
2023-08-17 22:04 ` [Bug libstdc++/111055] " redi at gcc dot gnu.org
@ 2023-09-18 17:19 ` redi at gcc dot gnu.org
2023-09-19 12:27 ` redi at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2023-09-18 17:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I am working on the ranges::to part of this (but not yet working on the new
container members).
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/111055] [C++23] Implement P1206R7, Conversions from ranges to containers
2023-08-17 22:03 [Bug libstdc++/111055] New: [C++23] Implement P1206R7, Conversions from ranges to containers redi at gcc dot gnu.org
2023-08-17 22:04 ` [Bug libstdc++/111055] " redi at gcc dot gnu.org
2023-09-18 17:19 ` redi at gcc dot gnu.org
@ 2023-09-19 12:27 ` redi at gcc dot gnu.org
2023-11-23 17:51 ` cvs-commit at gcc dot gnu.org
2023-11-23 17:54 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2023-09-19 12:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 55932
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55932&action=edit
Define std::ranges::to for C++23 (P1206R7)
Untested patch for the <ranges> additions.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/111055] [C++23] Implement P1206R7, Conversions from ranges to containers
2023-08-17 22:03 [Bug libstdc++/111055] New: [C++23] Implement P1206R7, Conversions from ranges to containers redi at gcc dot gnu.org
` (2 preceding siblings ...)
2023-09-19 12:27 ` redi at gcc dot gnu.org
@ 2023-11-23 17:51 ` cvs-commit at gcc dot gnu.org
2023-11-23 17:54 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-23 17:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:7a6a29c455e7755b501c0006e39beb4e56ec2729
commit r14-5794-g7a6a29c455e7755b501c0006e39beb4e56ec2729
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue Sep 19 13:23:13 2023 +0100
libstdc++: Define std::ranges::to for C++23 (P1206R7) [PR111055]
This adds the std::ranges::to functions for C++23. The rest of P1206R7
is not yet implemented, i.e. the new constructors taking the
std::from_range tag, and the new insert_range, assign_range, etc. member
functions. std::ranges::to works with the standard containers even
without the new constructors, so this is useful immediately.
The __cpp_lib_ranges_to_container feature test macro can be defined now,
because that only indicates support for the changes in <ranges>, which
are implemented by this patch. The __cpp_lib_containers_ranges macro
will be defined once all containers support the new member functions.
libstdc++-v3/ChangeLog:
PR libstdc++/111055
* include/bits/ranges_base.h (from_range_t): Define new tag
type.
(from_range): Define new tag object.
* include/bits/version.def (ranges_to_container): Define.
* include/bits/version.h: Regenerate.
* include/std/ranges (ranges::to): Define.
* testsuite/std/ranges/conv/1.cc: New test.
* testsuite/std/ranges/conv/2_neg.cc: New test.
* testsuite/std/ranges/conv/version.cc: New test.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/111055] [C++23] Implement P1206R7, Conversions from ranges to containers
2023-08-17 22:03 [Bug libstdc++/111055] New: [C++23] Implement P1206R7, Conversions from ranges to containers redi at gcc dot gnu.org
` (3 preceding siblings ...)
2023-11-23 17:51 ` cvs-commit at gcc dot gnu.org
@ 2023-11-23 17:54 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2023-11-23 17:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111055
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|redi at gcc dot gnu.org |unassigned at gcc dot gnu.org
Status|ASSIGNED |NEW
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
As the commit log says, I've added the std::ranges::to functions, but not the
new members of the standard containers. I don't have immediate plans to add
those new members, so I'm unassigning myself from this bug for now.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-11-23 17:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-17 22:03 [Bug libstdc++/111055] New: [C++23] Implement P1206R7, Conversions from ranges to containers redi at gcc dot gnu.org
2023-08-17 22:04 ` [Bug libstdc++/111055] " redi at gcc dot gnu.org
2023-09-18 17:19 ` redi at gcc dot gnu.org
2023-09-19 12:27 ` redi at gcc dot gnu.org
2023-11-23 17:51 ` cvs-commit at gcc dot gnu.org
2023-11-23 17:54 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).