(Removed original text as it is unrelated to the current question which has already been answered. See revisions.)
Here is my example test.hpp
(simplifi
I suggest separating the Painting
and Occupied
stuff into separate classes.
Thus you could have:
Painted House Occupied
| | |
+---------+--------+
|
Painted_Occupied_House
Prefer not to set up the dreaded diamond inheritance. See if you can refactor to alleviate the issue.
The diamond interface brings up the possibility of injecting more defects.