There are a lot of question on the subject, but none seem to address this specifically: Given a code base that does not allow everything solved with virtual functions (as you would do normally) there is a function:There are a lot of question on the subject, but