Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2019 20:39:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 236115] [toolchain] std::map doesn't have the 'extract' method
Message-ID:  <bug-236115-227@https.bugs.freebsd.org/bugzilla/>

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

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

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

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


> $ c++ -c --std=3Dc++17 map-extract.cpp
> map-extract.cpp:7:5: error: no member named 'extract' in 'std::__1::map<i=
nt, int, std::__1::less<int>, std::__1::allocator<std::__1::pair<const int,=
 int> > >'
>   m.extract(1);
>   ~ ^
> 1 error 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-236115-227>