Why is there no universal base class in C++?
The definitive ruling is found in Stroustrup’s FAQs. In short, it doesn’t convey any semantic meaning. It will have a cost. Templates are more useful for containers. Why doesn’t C++ have a universal class Object? We don’t need one: generic programming provides statically type safe alternatives in most cases. Other cases are handled using multiple … Read more