[all-commits] [llvm/llvm-project] eb5bc2: [libc++][unique_ptr] Implement LWG 4144: Disallow ...

Emmett via All-commits all-commits at lists.llvm.org
Mon Jul 13 11:39:28 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: eb5bc2694a05229bb9270eb141cd8fa499a185c1
      https://github.com/llvm/llvm-project/commit/eb5bc2694a05229bb9270eb141cd8fa499a185c1
  Author: Emmett <emmettzhang2020 at outlook.com>
  Date:   2026-07-13 (Mon, 13 Jul 2026)

  Changed paths:
    M libcxx/docs/Status/Cxx26Issues.csv
    M libcxx/include/__memory/unique_ptr.h
    A libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/non_pointable.single.verify.cpp

  Log Message:
  -----------
  [libc++][unique_ptr] Implement LWG 4144: Disallow unique_ptr<T&, D> (#209018)

Implement [LWG 4144](https://cplusplus.github.io/LWG/issue4144) by
explicitly rejecting `unique_ptr<T, D>` when `T*` is not a valid type.

This adds a pointability check and tests reference and abominable
function types.

Fixes #118359



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list