In this post, we will see how to resolve Trying to understand: clang’s side-effect warnings for typeid on a polymorphic object Question: This question is not about how to avoid the described warning. (Store in a reference beforehand; Or use ...

Question: So I’ve got this code: I get this error message when trying to compile it: As I understand it, the const at the end of the function is part of it’s type. Is typeid not accepting it because it’s ...