What are real-world examples of C++ multiple inheritance?
Microsoft's ATL (Active Template Library) uses multiple inheritance as mixin classes:
http://en.wikipedia.org/wiki/Active_Template_Library
Easiest to point at iostream
, which inherits from istream
and ostream
. cin
and cout
are istream
and ostream
respectively but fstream
derives from iostream
.
It's very common when using Policy-based design, for example.