Closed
Bug 1654564
Opened 5 years ago
Closed 5 years ago
MOZ_TRY_VAR documentation is wrong about the requirements for target
Categories
(Core :: MFBT, task)
Core
MFBT
Tracking
()
RESOLVED
FIXED
81 Branch
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: sg, Assigned: sg)
Details
Attachments
(1 file)
That doesn't sound right: |target| must evaluate to a reference without any side effects.
This sounds as if decltype(target)
would need to be a reference, which is not true. In the typical use as in int x; MOZ_TRY_VAR(x, Task())
, it is not a reference. While it might be a reference, this seems to be a more awkward use.
I think what this intends to say is: |target| must be an lvalue
(Not sure what the side effects part is intended to say)
Assignee | ||
Comment 1•5 years ago
|
||
Pushed by sgiesecke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8ed46d7477e1
Fix documentation of requirements on target in MOZ_TRY_VAR. r=froydnj
Comment 3•5 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox81:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•