Closed Bug 1263654 Opened 9 years ago Closed 6 months ago

Tuple should be constructible from types explicitly convertible to the element types

Categories

(Core :: MFBT, defect)

defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox48 --- affected

People

(Reporter: botond, Unassigned)

References

Details

mozilla::Tuple is currently constructible from types that are *implicitly* convertible to the element types. Sometimess, it's also useful to be able to construct a tuple from types that are *explicitly* convertible to the element types. (For example, not being able to do this required us to change some constructors of other classes to be implicit in bug 1163320). std::tuple supports this; I think it makes sense for mozilla::Tuple to do so as well.
Depends on: 1263666
I filed bug 1276351 to consider axing mozilla::Tuple altogether and use std::tuple instead, now that we can. I'll wait for a decision on that bug before either WONTFIXing this bug, or implementing the described fix.
See Also: → 1276351
Severity: normal → S3

mozilla::Tuple no longer exists.

Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.