Closed Bug 1350790 Opened 7 years ago Closed 7 years ago

Add constexpr to CheckedInt

Categories

(Core :: MFBT, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

So we can write:
constexpr CheckedInt64 i1(0);
constexpr CheckedInt64 i2 = 333;
Assignee: nobody → jwwang
Blocks: 1245019
Blocks: 1350791
Comment on attachment 8851448 [details]
Bug 1350790 - Add constexpr to CheckedInt.

https://reviewboard.mozilla.org/r/123736/#review126318
Attachment #8851448 - Flags: review?(nfroyd) → review+
Thanks!
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d94c51e57ea3
Add constexpr to CheckedInt. r=froydnj
https://hg.mozilla.org/mozilla-central/rev/d94c51e57ea3
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: