[all-commits] [llvm/llvm-project] c37734: [libc++] Fix ability to explicitly instantiate std...
Sanjay Marreddi via All-commits
all-commits at lists.llvm.org
Wed Dec 20 02:53:32 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c37734d40904ebe9c7cc345aab6be3649b0a903c
https://github.com/llvm/llvm-project/commit/c37734d40904ebe9c7cc345aab6be3649b0a903c
Author: Sanjay Marreddi <sanjay.mareddi at gmail.com>
Date: 2023-12-20 (Wed, 20 Dec 2023)
Changed paths:
M libcxx/include/__numeric/midpoint.h
M libcxx/test/libcxx/numerics/numeric.ops/midpoint.integer.pass.cpp
M libcxx/test/std/numerics/numeric.ops/numeric.ops.midpoint/midpoint.pointer.pass.cpp
Log Message:
-----------
[libc++] Fix ability to explicitly instantiate std::midpoint (#74217)
std::midpoint is specified by having a pointer overload in
[numeric.ops.midpoint].
With the way the pointer overload is specified, users can expect that
calling
std::midpoint as `std::midpoint<T>(a, b)` should work, but it didn't in
libc++
due to the way the pointer overload was specified.
Fixes #67046
More information about the All-commits
mailing list