Thanks for the link, but that's actually and excerpt from the book that I'm reading that confused me in the first place.
I just don't get how that saves you from having to specify Widget in the typedef.
The original example makes perfect sense to me. Is it that it inherits from a specified...
I thought I was familiar with template syntax until...
I'm reading "Modern C++ Design" and was comfortable with the code:
//Library Code
template <class CreationPolicy>
class WidgetManager : public CreationPolicy
{
...
};
//Application Code
typedef WidgetManager< OpNewCreator<Widget> >...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.