Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2022 20:45:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 264159] Some members are missing in the std::views C++ STL namespace
Message-ID:  <bug-264159-99@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264159

            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=3Dc++20 x.cpp=20
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264159-99>