]> git.ipfire.org Git - thirdparty/gcc.git/commit
Revert "libstdc++: Optimize std::projected<I, std::identity>" [PR119888]
authorPatrick Palka <ppalka@redhat.com>
Tue, 22 Apr 2025 16:52:34 +0000 (12:52 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 22 Apr 2025 16:52:34 +0000 (12:52 -0400)
commit49e79b86936373fc70c3bdea3b2d8353cf8957b1
treee5871923100116bcac2f0c42f2e2422242c604bf
parenta544a9c5bbfce013ab020f82acd2470d610fb3c8
Revert "libstdc++: Optimize std::projected<I, std::identity>" [PR119888]

This non-standard optimization breaks real-world code that expects the
result of std::projected to always (be a class type and) have a value_type
member, which isn't true for e.g. I=int*, so revert it for now.

PR libstdc++/119888

This reverts commit 51761c50f843d5be4e24172535e4524b5072f24c.
libstdc++-v3/include/bits/iterator_concepts.h
libstdc++-v3/testsuite/24_iterators/indirect_callable/projected.cc