[all-commits] [llvm/llvm-project] 81ceda: [libc++] Deprecates and removes shared_ptr::unqiue...

Mark de Wever via All-commits all-commits at lists.llvm.org
Sat Dec 30 05:05:35 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81cedac8f60cf5a0c2c3724a8260d46792b9d637
      https://github.com/llvm/llvm-project/commit/81cedac8f60cf5a0c2c3724a8260d46792b9d637
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2023-12-30 (Sat, 30 Dec 2023)

  Changed paths:
    M libcxx/docs/ReleaseNotes/18.rst
    M libcxx/docs/Status/Cxx17Papers.csv
    M libcxx/docs/Status/Cxx20.rst
    M libcxx/docs/UsingLibcxx.rst
    M libcxx/include/__memory/shared_ptr.h
    M libcxx/include/memory
    A libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/unique.deprecated_in_cxx17.verify.cpp
    M libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/unique.pass.cpp
    A libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.obs/unique.removed_in_cxx20.verify.cpp

  Log Message:
  -----------
  [libc++] Deprecates and removes shared_ptr::unqiue. (#76576)

The status table incorrectly marks P0521R0 as nothing to do. This is not
correct the function should be deprecated.
During our latest monthly meeting we argreed to remove the
_LIBCPP_ENABLE_CXXyy_REMOVED_FEATURES macros, therefore the new macro is
not
added to that global list.

Implements
- P0521R0 Proposed Resolution for CA 14 (shared_ptr use_count/unique)

Implements parts of
- P0619R4 Reviewing Deprecated Facilities of C++17 for C++20

---------

Co-authored-by: Nikolas Klauser <nikolasklauser at berlin.de>




More information about the All-commits mailing list