This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Resolved status.

3223. lerp should not add the "sufficient additional overloads"

Section: 28.7.1 [cmath.syn] Status: Resolved Submitter: Billy O'Neal III Opened: 2019-06-20 Last modified: 2023-02-07

Priority: 2

View other active issues in [cmath.syn].

View all other issues in [cmath.syn].

View all issues with Resolved status.

Discussion:

It seems that lerp can't give a sensible answer for integer inputs. It's new machinery, not the legacy C stuff extended with extra overloads.

I would prefer to fix this by explicitly annotating the functions that are supposed to get additional overloads because we keep getting this wrong, but we could also exempt lerp in 28.7.1 [cmath.syn] p2.

[2019-07 Issue Prioritization]

Priority to 2 after discussion on the reflector.

[2023-02-07 Status changed: New → Resolved.]

Resolved by the application of P1467R9. It's now clear that lerp should have "sufficient additional overloads".

Proposed resolution: