3 Commits

Author SHA1 Message Date
eiytoq
bfd139dacd
[libc++] Fix LWG 4265: std::midpoint should not accept const bool (#174579)
Fixes: #171324

---------

Co-authored-by: Hristo Hristov <hghristov.rmm@gmail.com>
2026-01-09 07:26:38 +08:00
Hristo Hristov
6c2c0b9da2
[libc++][numeric] Modernized std::midpoint (#174596)
- Some improvements to `std::midpoint` implementation: replaces
`enable_if` with concepts.

https://wg21.link/numeric.ops.midpoint

Towards #172124

---------

Co-authored-by: Hristo Hristov <zingam@outlook.com>
2026-01-08 12:05:27 +02:00
Louis Dionne
b82dcb624e [libc++] Move all the remaining .fail.cpp tests to .verify.cpp
I made sure they all had some expected-error output in them. Many of
these tests would be better implemented as a positive test using SFINAE,
but this is beyond the scope of this patch.

Differential Revision: https://reviews.llvm.org/D153980
2023-07-03 09:41:03 -04:00