https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236115

            Bug ID: 236115
           Summary: [toolchain] std::map doesn't have the 'extract' method
           Product: Base System
           Version: 11.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: [email protected]
          Reporter: [email protected]

https://en.cppreference.com/w/cpp/container/map/extract says that it is c++17
method, yet this testcase breaks:

> #include <map>
> 
> void f() {
>   std::map<int,int> m;
>   m.extract(1);
> } 


> $ c++ -c --std=c++17 map-extract.cpp
> map-extract.cpp:7:5: error: no member named 'extract' in 'std::__1::map<int, 
> int, std::__1::less<int>, std::__1::allocator<std::__1::pair<const int, int> 
> > >'
>   m.extract(1);
>   ~ ^
> 1 error generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to