Closed Bug 1345841 Opened 7 years ago Closed 7 years ago

Stop using Maybe<const T>

Categories

(Core :: Layout, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

Attachments

(1 file)

We should probably not be using Maybe<const T> since we tend to end up unexpectedly invoking copy constructors - see bug 1345840. Instead we should use const Maybe<T>. In theory we might want support for the former in order to have Maybe's which can have different T's emplaced into them while the T's themselves are const, but we don't currently need that anywhere.
Attached patch patchSplinter Review
Attachment #8845395 - Flags: review?(mats)
Attachment #8845395 - Flags: review?(mats) → review+
https://hg.mozilla.org/mozilla-central/rev/5ca1379d49df
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: