[all-commits] [llvm/llvm-project] 835640: [libcxx] Add deduction guides for shared_ptr and w...

kepler-5 via All-commits all-commits at lists.llvm.org
Thu May 7 09:08:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 83564056d4b186c9fcf016cdbb388755009f7b5a
      https://github.com/llvm/llvm-project/commit/83564056d4b186c9fcf016cdbb388755009f7b5a
  Author: Logan Smith <logan.r.smith0 at gmail.com>
  Date:   2020-05-07 (Thu, 07 May 2020)

  Changed paths:
    M libcxx/include/memory
    A libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/deduction.pass.cpp
    A libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/shared_ptr_deduction.pass.cpp

  Log Message:
  -----------
  [libcxx] Add deduction guides for shared_ptr and weak_ptr

This patch adds deduction guides to <memory> to allow deducing
construction of shared_ptrs from unique_ptrs, and from weak_ptrs
and vice versa, as specified by C++17.

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




More information about the All-commits mailing list