
From: David Abrahams <dave@boost-consulting.com>
Technically one can never say "class template foo is a traits template" or "class template foo is a policy" without examining how it's used. There's no fundamental reason that the same class template can't be used in both ways, so for any given class template, there may be no either/or answer.
I don't quite agree. A policy class is only that because it is a template parameter. Whether a class that is passed as a policy to some template happens to be a traits class is immaterial. So, in the context of the template, the template parameter is a policy class and that may correspond to a traits class in a particular specialization, but that doesn't make the traits class a policy class. Does that make sense? -- Rob Stewart stewart@sig.com Software Engineer http://www.sig.com Susquehanna International Group, LLP using std::disclaimer;