Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2008-01-10 16:10:13


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk