I raised a "possible duplicate" flag on this question as a duplicate of this question because the first two answers of the latter question provide examples of how to do what the former was asking. In fact, the only answer for the former question is basically the same suggestion as the first (accepted) answer to the latter question. It is my impression that even if the questions are not exactly the same, they should be marked duplicate if they're close enough such that the answers will be the same. Is that not correct? If it is correct, why was my flag declined?
dynamic_cast
will not work