https://bugs.llvm.org/show_bug.cgi?id=51464
Bug ID: 51464
Summary: std::lerp is missing Arithmetic overloads
Product: libc++
Version: 12.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: unassignedclangb...@nondot.org
Reporter: konstantinu...@gmail.com
CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com
According to C++20 standard paragraph 20.8.1.2 ( [cmath.syn] ), std::lerp is
not an exception to expansion of acceptable parameters to integral and mixed
floating point types.
I.e. overload 4) from https://en.cppreference.com/w/cpp/numeric/lerp is
missing.
Example code (compile with -std=c++20):
#include<cmath>
int main()
{
std::lerp(int{},int{},int{});
std::lerp(float{}, double{}, (long double)0);
}
https://godbolt.org/z/vboY4aoE9
Current behaviour:
Does not compile with: "error: call to 'lerp' is ambiguous" (twice)
Expected behaviour:
Compilation with no issues.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs