Closed
Bug 1610066
Opened 5 years ago
Closed 5 years ago
SafeElementAt on nsTArray<RefPtr<T>> requires complete type T.
Categories
(Core :: XPCOM, task)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla74
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
Details
Attachments
(1 file)
Which makes us have a ton of silly includes.
Assignee | ||
Comment 1•5 years ago
|
||
TLDR this doesn't compile:
struct RefCounted;
class Foo {
~Foo(); // Intentionally out of line
nsTArray<RefPtr<RefCounted>> mArray;
RefCounted* GetFirst() const {
return mArray.SafeElementAt(0);
}
};
Assignee | ||
Comment 2•5 years ago
|
||
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/8c0a314f916f
Make nsTArray::SafeElementAt not require the complete type for smart pointers. r=froydnj
Comment 4•5 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 5 years ago
status-firefox74:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in
before you can comment on or make changes to this bug.
Description
•