[all-commits] [llvm/llvm-project] 1645d9: [libc++][hardening] Use `static_assert` for `__(st...

A. Jiang via All-commits all-commits at lists.llvm.org
Fri Nov 8 06:59:43 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1645d99bc9c16b1f9e2f08e36d67054498d8751e
      https://github.com/llvm/llvm-project/commit/1645d99bc9c16b1f9e2f08e36d67054498d8751e
  Author: A. Jiang <de34 at live.cn>
  Date:   2024-11-08 (Fri, 08 Nov 2024)

  Changed paths:
    M libcxx/include/__iterator/bounded_iter.h
    M libcxx/include/__iterator/static_bounded_iter.h
    A libcxx/test/libcxx/iterators/contiguous_iterators.verify.cpp

  Log Message:
  -----------
  [libc++][hardening] Use `static_assert` for `__(static_)bounded_iter` (#115304)

We can't `static_assert` `__libcpp_is_contiguous_iterator` for
`__wrap_iter` currently because `__wrap_iter` is also used for wrapping
user-defined fancy pointers.

Fixes #115002.



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