[Bug 236115] [toolchain] std::map doesn't have the 'extract' method

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Feb 28 20:39:40 UTC 2019


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: bugs at FreeBSD.org
          Reporter: yuri at freebsd.org

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.


More information about the freebsd-bugs mailing list