CxxTest/cxxtest — Issue #37: Refactor Link
Author: whart222
Created: 2012-02-05 04:45:54+00:00
State: open

Currently for an object to participate in a linked list it need to subclass
Link. This is not such a bad thing, except that we are also trying to avoid
multiple inheritance, as a result participating in a linked list prevents a
class from being in any other class hierarchy. This can be worked around, but
becomes a bit awkward. The proper solution is probably to implement something
resembling an STL list, this would make participation in a linked list
completely orthogonal to the class hierarchy.

There is no immediate need for this, the class hierarchy we have right now is
perfectly usable, this is just an interesting thought.