[all-commits] [llvm/llvm-project] 5b1145: [libc++][NFC] Refactor the __enable_ifs in <string>

philnik777 via All-commits all-commits at lists.llvm.org
Sun Mar 19 02:26:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b1145bc46e20c98d1ff95745c6e75d42d864db2
      https://github.com/llvm/llvm-project/commit/5b1145bc46e20c98d1ff95745c6e75d42d864db2
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2023-03-19 (Sun, 19 Mar 2023)

  Changed paths:
    M libcxx/include/string

  Log Message:
  -----------
  [libc++][NFC] Refactor the __enable_ifs in <string>

This changes all `__enable_if`s inside `<string>` to a common pattern. Specifically, it's always inside the `template <>` and uses the `, int> = 0` style.

Reviewed By: ldionne, #libc

Spies: mikhail.ramalho, EricWF, libcxx-commits

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




More information about the All-commits mailing list