[all-commits] [llvm/llvm-project] 8d802f: [libc++] Keep unary_function and binary_function i...

Louis Dionne via All-commits all-commits at lists.llvm.org
Sat Sep 24 07:22:08 PDT 2022


  Branch: refs/heads/release/15.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d802f78fa8c91707ecea1ae4ab141ba835429bc
      https://github.com/llvm/llvm-project/commit/8d802f78fa8c91707ecea1ae4ab141ba835429bc
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2022-09-23 (Fri, 23 Sep 2022)

  Changed paths:
    M libcxx/docs/ReleaseNotes.rst
    M libcxx/include/__config
    M libcxx/test/libcxx/depr/depr.func.adaptor.typedefs/typedefs.depr_in_cxx17.verify.cpp

  Log Message:
  -----------
  [libc++] Keep unary_function and binary_function in C++17 for one more release

In LLVM 15, we added the deprecation markup for unary_function and
binary_function for >= C++11, and we also removed it for >= C++17.
While this is in accordance with the Standard, it's also a bit quick
for our users, since there was no release in which the classes were
marked as deprecated before their removal.

We noticed widespread breakage due to this, and after months of trying
to fix downstream failures, I am coming to the conclusion that users
will be better served if we give them one release where unary_function
is deprecated but still provided even in >= C++17.

Differential Revision: https://reviews.llvm.org/D134473




More information about the All-commits mailing list