Closed Bug 1625473 Opened 4 months ago Closed 4 months ago

Use type traits for AbsReturnType

Categories

(Core :: MFBT, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file)

Instead of manually listing the supported signed integral and floating point types, we should use std::is_signed, std::is_integral, std::is_floating_point, and std::make_unsigned for AbsReturnType.

Also removes the comment which allows adding more AbsReturnType specialisations,
because that shouldn't be necessary anymore.

Pushed by dvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/89d69283ef77
Use type traits for AbsReturnType. r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.