public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/102301] New: make_from_tuple can not work with subrange
@ 2021-09-13  3:54 hewillk at gmail dot com
  2021-09-13  4:04 ` [Bug libstdc++/102301] " pinskia at gcc dot gnu.org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: hewillk at gmail dot com @ 2021-09-13  3:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102301
           Summary: make_from_tuple can not work with subrange
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

I don't know if it is a bug, because the standard does not specify whether
make_from_tuple can be applied to subrange even if it looks well-formed, so
this may only be regarded as a feature request. 

Given that MSVC-STL already supports it, I think it should have some value.

#include <ranges>
#include <vector>

int main() {
  auto v =
std::make_from_tuple<std::vector<int>>(std::ranges::subrange(std::views::iota(0,
5)));
}

https://godbolt.org/z/Ebx83z4s1

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-07-07  9:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-13  3:54 [Bug libstdc++/102301] New: make_from_tuple can not work with subrange hewillk at gmail dot com
2021-09-13  4:04 ` [Bug libstdc++/102301] " pinskia at gcc dot gnu.org
2021-09-13  4:22 ` hewillk at gmail dot com
2021-09-13  9:24 ` redi at gcc dot gnu.org
2021-09-13  9:28 ` redi at gcc dot gnu.org
2021-09-13 10:16 ` hewillk at gmail dot com
2021-09-13 10:18 ` redi at gcc dot gnu.org
2021-09-13 10:29 ` hewillk at gmail dot com
2022-04-06  3:07 ` de34 at live dot cn
2022-04-13  7:20 ` redi at gcc dot gnu.org
2022-06-28 10:46 ` jakub at gcc dot gnu.org
2022-07-28  7:34 ` de34 at live dot cn
2023-01-24 23:51 ` cvs-commit at gcc dot gnu.org
2023-07-07  9:46 ` rguenth 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).