Closed Bug 1613363 Opened 5 years ago Closed 5 years ago

Maybe<T> should preserve trivial copy-constructability and destructability of T

Categories

(Core :: MFBT, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: sg, Assigned: sg)

References

Details

Attachments

(1 file)

This should include preserving trivial-copyability as well. Currently, e.g. passing a Maybe<int64_t> triggers a clang-tidy warning, which is not meaningful:

Warning: The const qualified parameter 'aNewVersion' is copied for each invocation; consider making it a reference [clang-tidy: performance-unnecessary-value-param]
Summary: Maybe<T> should preserve trivial constructability and destructability of T → Maybe<T> should preserve trivial copy-constructability and destructability of T
Assignee: nobody → sgiesecke
Status: NEW → ASSIGNED
Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ec923b3c5f45 Maybe<T> should preserve trivial copy-constructability and destructability of T. r=froydnj
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
Blocks: 1626149
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: