[all-commits] [llvm/llvm-project] 6146e4: [libc++] Make __wrap_iter constexpr

philnik777 via All-commits all-commits at lists.llvm.org
Wed Dec 1 14:30:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6146e4cf89dbd5d9627c4694e0bea9d4c0fc6e0b
      https://github.com/llvm/llvm-project/commit/6146e4cf89dbd5d9627c4694e0bea9d4c0fc6e0b
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2021-12-01 (Wed, 01 Dec 2021)

  Changed paths:
    M libcxx/include/__config
    M libcxx/include/__iterator/wrap_iter.h

  Log Message:
  -----------
  [libc++] Make __wrap_iter constexpr

`__wrap_iter` is currently only constexpr if it's not a debug built, but it isn't used in a constexpr context currently. Making it always constexpr and disabling the debugging utilities at constant evaluation is more usful since it has to be always constexpr to be used in a constexpr context.

Reviewed By: ldionne, #libc

Spies: libcxx-commits

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




More information about the All-commits mailing list