https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121956
Bug ID: 121956
Summary: P2165R4: Compatibility between tuple and tuple-like
objects is not fully implemented
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: hewillk at gmail dot com
Target Milestone: ---
#include <vector>
#include <ranges>
int main() {
std::vector v{1, 2, 3, 4};
auto r = v | std::views::pairwise;
static_assert(
std::is_same_v<
std::ranges::range_value_t<decltype(r)>,
std::tuple<int, int>
>);
}
https://godbolt.org/z/s865x5MrM