AMDG Scott Meyers wrote:
Steven Watanabe wrote:
template<class Sequence> struct MakeFeatures { typedef Features
> ::type> type; };
I'm trying to understand the code you posted, but I'm having trouble, probably because I'm missing some basic concepts. I hope people here won't mind helping me with something I'm sure is basic: why do we need to make a copy of Sequence here? I've tried replacing the above typedef with
typedef Features<Sequence> type;
and everything breaks, so it's clear that the copy is there for a reason, but what is it?
The copy is to guarantee uniqueness. If you have a
Features