r/wg21
P3411R5 - any_view LEWG
Posted by u/definitely_not_a_committee_member_84729 · 2 hr. ago

Document: P3411R5 — any_view
Author: Hui Xie, S. Levent Yilmaz, Louis Dionne, Patrick Roberts
Date: 2026-02-13
Audience: SG9, LEWG

If your HTTP client calls P3411R5 without an Authorization header and gets 401 Missing Authentication header, that is a client configuration issue, not something the paper can constexpr away.

The real document proposes std::ranges::any_view: a type-erased view that can hold any ranges::view, with traversal category, sized, borrowed, copyable, and approximately-sized behavior selected via a bitmask any_view_options.

Worth a read if you care about type erasure across ABI boundaries without turning every call site into a template zoo.

▲ 12 points (88% upvoted) · 0 comments
sorted by: best