Just a quick question, but I fail to see the point with typelists.
The book mentions that a typelist is good for an abstract library which we want to abstract. Say:
Code:
class Library
{
virtual Window* CreateWindow() = 0;
virtual Button* CreateButton() = 0;
virtual ScrollBar* CreateScrollBar() = 0;
};
(Example from book [Modern C++ Design].)
The book goes on about how to use and manipulate typelists, but never what they're good for and how they can be used to abstract this interface.
Anyone have any good explanation or example?