[libc-commits] [libc] [libc++] Prevent calling the projection more than three times (PR #66315)

A. Jiang via libc-commits libc-commits at lists.llvm.org
Sun Sep 24 19:05:25 PDT 2023


frederick-vs-ja wrote:

It seems that we should remove this block because it turns out that `ranges::clamp` needs double moves under some circumstances.
https://github.com/llvm/llvm-project/blob/4c1c96e6fc0f704e9e032f87b2cd1e04bb4240dd/libcxx/test/std/algorithms/alg.sorting/alg.clamp/ranges.clamp.pass.cpp#L89-L110

https://github.com/llvm/llvm-project/pull/66315


More information about the libc-commits mailing list