Open
Bug 1603736
Opened 5 years ago
Updated 2 years ago
Harmonize nsCOMPtr<nsISupports> specialization with generic nsCOMPtr<T>
Categories
(Core :: XPCOM, task)
Core
XPCOM
Tracking
()
NEW
People
(Reporter: sg, Unassigned)
Details
The nsCOMPtr<nsISupports>
specialization is missing a few features that nsCOMPtr<T>
, which do not appear intentional based on the description:
nsCOMPtr<T>
can be constructed or assigned implicitly from a raw pointer, rvalue reference to an nsCOMPtr, lvalue or rvalue reference to an already_AddRefed derived from T.nsCOMPtr<nsISupports>
allows this only for a raw pointer.nsCOMPtr<T>
is copy/move-constructible and copy/move-assignable, whilensCOMPtr<nsISupports>
is only copy-constructible and copy-assignablensCOMPtr<T>
can be constructed or assigned from aOwningNonNull
of the same or a derived type, butnsCOMPtr<nsISupports>
cannot
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•