[libcxx-commits] [PATCH] D127908: [libc++] Remvoe std::function in C++03

Joe Loser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 15 17:29:33 PDT 2022

jloser added a comment.

I'm OK removing this extension with an opt-in knob depending on how bad the breakage is internally at Apple/Google.

To fix CI, we'll need to mark several tests with `// UNSUPPORTED: c++03` now.  While we're at it, let's please fix the typo in the commit title `s/Remvoe/Remove`; ditto for the commit message (`s/with and/with an`).

Comment at: libcxx/docs/ReleaseNotes.rst:145
+- ``std::function`` has been remove from C++03. If you are using it please remove the uses
+  or upgrade to C++11. It is possible to re-enable ``std::function`` by defining
There are a few typos here. How about this, instead?

> `std::function` has been removed in C++03.  If you are using it, please remove usages or upgrade to C++11 or later. It is possible to re-enable `std::function` in C++03 mode by defining `_LIBCPP_ENABLE_CXX03_FUNCTION`. This option will be removed in LLVM 16.

  rG LLVM Github Monorepo



More information about the libcxx-commits mailing list