public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/106803] New: views::adjacent_transform should not return views::empty<tuple<>> when N == 0
@ 2022-09-01 16:37 hewillk at gmail dot com
  2022-09-01 16:43 ` [Bug libstdc++/106803] " hewillk at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: hewillk at gmail dot com @ 2022-09-01 16:37 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106803
           Summary: views::adjacent_transform should not return
                    views::empty<tuple<>> when N == 0
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

views::adjacent_transform seems to incorrectly copy-paste views::adjacent's
operator(), which makes it return views​::​empty<tuple<>> when N == 0, however,
according to the standard, it should return views​::​zip_transform(F) which is
views::empty<decay_t<invoke_result_t<FD&>>>.

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

end of thread, other threads:[~2022-09-10  3:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-01 16:37 [Bug libstdc++/106803] New: views::adjacent_transform should not return views::empty<tuple<>> when N == 0 hewillk at gmail dot com
2022-09-01 16:43 ` [Bug libstdc++/106803] " hewillk at gmail dot com
2022-09-01 17:10 ` ppalka at gcc dot gnu.org
2022-09-09 19:05 ` cvs-commit at gcc dot gnu.org
2022-09-09 19:09 ` ppalka at gcc dot gnu.org
2022-09-10  3:39 ` hewillk at gmail dot com

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).