
10 Jan
2008
10 Jan
'08
9:10 p.m.
Michael Fawcett <michael.fawcett <at> gmail.com> writes:
My questions are - when creating your own library, when do you choose nested typedefs over a traits class, and what effects does it have on a library user, both from a usability and extensibility point of view. What questions do you ask yourself to come to a decision?
It's regular Policies vs. Traits decision. If your typedefs can't be arbutrary combined with primary template parameter type use concepts with typedefs if these are just secondary types *uniqly* identified by your primary template parameter use traits. Usually decision is clear. Gennadiy