![]() |
Public API Reference |
![]() |
Fugly helper to resolve some bad situations. More...
#include <csutil/scf_implementation.h>
Fugly helper to resolve some bad situations.
;) Basically, it adds a new entry to QueryInterface() without adding another class to inheritance.
Consider the following case:
struct iA : public virtual iBase {}; struct iB : public iA {}; class myB : public scfImplementation1<myB, iB> {..}.
Querying iA from myB will then fail even though myB inherits from iA (through iB). By changing the declaration to
class myB : public scfImplementation2<myB, iB, scfFakeInterface<iA> > {..}
you make sure you can query iA from myB.
Definition at line 114 of file scf_implementation.h.