In my view, the need to use dynamic_cast (and the RTTI overhead it requires) with MI class hierarchies makes widespread use of inherited C++ interface classes undesirable. It's simpler and more efficient to use interface containment in an object (by declaring an explicit pointer to each interface class). Yes, you then have to use new and delete on each pointer, but that's what your constructors and destructors are there for...
Flat View: This topic has 15 replies
on 2 pages
[
«
|
12
]