[all-commits] [llvm/llvm-project] 34538d: [libc++] Make shared_ptr move unique_ptr's deleter
Asher Mancinelli via All-commits
all-commits at lists.llvm.org
Fri Mar 18 10:54:49 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 34538dba9be69f69ef8df088485447b278470020
https://github.com/llvm/llvm-project/commit/34538dba9be69f69ef8df088485447b278470020
Author: Asher Mancinelli <ashermancinelli at gmail.com>
Date: 2022-03-18 (Fri, 18 Mar 2022)
Changed paths:
M libcxx/docs/Status/Cxx2bIssues.csv
M libcxx/include/__memory/shared_ptr.h
M libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/unique_ptr.pass.cpp
Log Message:
-----------
[libc++] Make shared_ptr move unique_ptr's deleter
Addresses LWG 3548 which mandates that when shared_ptr is being constructed from a unique_ptr, the unique_ptr's deleter should be moved and not copied.
Reviewed By: #libc, philnik, EricWF
Differential Revision: https://reviews.llvm.org/D119159
More information about the All-commits
mailing list