A C++ Insights episode explaining why calling virtual member functions from a constructor is dangerous. Through examples, it demonstrates the pitfalls of this pattern, which stems from how C++ constructs objects and resolves virtual dispatch during construction.

1m read timeFrom andreasfertig.com
Post cover image

Sort: