Dynamically determining the base class of a class using templates

Well nearly dynamically! When working on the ATL COM framework I came across a piece of framework code which makes a template parameter as the base class of a class which looked quite useful to me. Here is a demo… [sourcecode language=’cpp’]template class SomeWnd : public BaseClass {     public: LRESULT WindowProc(UINT uMessage, WPARAM wParam, […]
Continue reading…