From Jason Turner
Watch on YouTube

Summary

This episode challenges the conceptual understanding of C++ constructors by arguing they aren't actually functions that can be called directly, but rather conversion operators from parameters to a type. Jason demonstrates that unlike member functions and destructors, constructors cannot be pointed to or explicitly invoked. Instead, what appears to be constructor calls are actually explicit type conversions using function-style cast syntax. The episode explores different ways to perform these conversions and highlights the limitations of each approach.

Resources

Tags