Closed Bug 1661497 Opened 3 months ago Closed 3 months ago

Allow use of DebugOnly<T> with non-copyable T

Categories

(Core :: MFBT, task)

task

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: sg, Assigned: sg)

References

Details

Attachments

(1 file)

Currently, DebugOnly<T> requires T to be copyable, just because it has no constructor/assignment operator accepting a T&&. This should be fixed to allow the use with non-copyable T and prefer moving where possible (even though the latter only affects Debug builds).

Blocks: 1661502
Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/733df139089a
Make DebugOnly work with move-only value types. r=froydnj
Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fe8e9781cc24
Make DebugOnly work with move-only value types. r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.