Document important COM implementation macro limitation
These macros can't be used with multiple inheritance, as they don't do anything to cast the pointer to the correct type in this case.
This commit is contained in:
@@ -39,6 +39,9 @@ extern WXDLLIMPEXP_CORE bool IsIidFromList(REFIID riid, const IID *aIids[], size
|
||||
// ============================================================================
|
||||
|
||||
/*
|
||||
WARNING: This does NOT work with multiple inheritance, so multiple
|
||||
interfaces can only be supported when they inherit from each other.
|
||||
|
||||
The most dumb implementation of IUnknown methods. We don't support
|
||||
aggregation nor containment, but for 99% of cases this simple
|
||||
implementation is quite enough.
|
||||
|
||||
Reference in New Issue
Block a user