79660483

Date: 2025-06-10 13:07:39
Score: 2.5
Natty:
Report link

Ok, I tracked it down. I am wrapping a large C library with C++. I debugged it all the way through and it turns out that a c function that I call in the in a constructor of the base class is triggering a callback that does the dynamic_cast. I know that in the constructor you don't get polymorphic behaviour on virtual function calls. I guess that also means that type info is not yet available on the "this" pointer.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: matt