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.
Related C++ Standard Sections
This episode covers topics found in these sections of the C++ standard:
-
[concept.constructible]58% match