Details
Details
- Reviewers
ldionne Mordante var-const huixie90 - Group Reviewers
Restricted Project - Commits
- rGb816b526741c: [libc++][math.h][NFC] Refactor enable_ifs
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM pending CI.
libcxx/include/math.h | ||
---|---|---|
319 | I don't think that is valid in C++03, but maybe Clang accepts it as an extension. In all case, I'm OK if the CI's happy. |
Comment Actions
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.
I don't think that is valid in C++03, but maybe Clang accepts it as an extension. In all case, I'm OK if the CI's happy.