[Bug 264159] Some members are missing in the std::views C++ STL namespace
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 May 2022 20:45:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264159
Bug ID: 264159
Summary: Some members are missing in the std::views C++ STL
namespace
Product: Base System
Version: 13.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: standards
Assignee: standards@FreeBSD.org
Reporter: yuri@freebsd.org
The example from https://en.cppreference.com/w/cpp/ranges/all_view fails to
compile:
$ c++ -std=c++20 x.cpp
x.cpp:9:50: error: no member named 'take' in namespace 'std::views'
for(int n : std::views::all(v) | std::views::take(2) ) {
~~~~~~~~~~~~^
x.cpp:14:30: error: no member named 'single' in namespace 'std::views'
decltype(std::views::single(42)),
~~~~~~~~~~~~^
x.cpp:16:9: error: expected '(' for function-style cast or type construction
>{});
^
x.cpp:16:9: error: initializer list cannot be used on the right hand side of
operator '>'
>{});
^~~
4 errors generated.
--
You are receiving this mail because:
You are the assignee for the bug.