Closed
Bug 1604987
Opened 5 years ago
Closed 5 years ago
Add new macro to support override pure virtual refcounting methods
Categories
(Core :: XPCOM, task)
Core
XPCOM
Tracking
()
RESOLVED
INVALID
People
(Reporter: alwu, Assigned: alwu)
References
Details
Attachments
(1 obsolete file)
In order to support following usage, when we extend a refcounting abstract class, but want the inherited class still being an abstract class. Therefore, we would like to have a marco to declare pure virtual override refcounting methods.
class foo {
public:
NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING
virtual doSomething() = 0;
};
class bar : public foo {
public:
// We want to override AddRef() and Release() but still make this class as an abstract class
virtual doSomething() override = 0;
virtual doAnotherThing() = 0;
};
Assignee | ||
Comment 1•5 years ago
|
||
In order to support a usage where we want to extend a refcounting abstract class, but want the inherited class still being an abstract class. Therefore, we would like to have a marco to declare pure virtual override refcounting methods.
Updated•5 years ago
|
Attachment #9116884 -
Attachment is obsolete: true
Assignee | ||
Updated•5 years ago
|
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•