[libcxx-commits] [PATCH] D137501: [libc++][math.h][NFC] Refactor enable_ifs

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 21 14:11:44 PST 2022


philnik added a comment.

In D137501#3941627 <https://reviews.llvm.org/D137501#3941627>, @EricWF wrote:

> Why is this a cleanup?

Because it separates SFINAE and the return type, and moves to the `enable_if` style we agreed on using (`template <..., __enable_if_t<condition, int> = 0>`). Reminds me that we wanted to document this somewhere.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137501/new/

https://reviews.llvm.org/D137501



More information about the libcxx-commits mailing list