|
Boost : |
From: Doug Gregor (dgregor_at_[hidden])
Date: 2008-01-10 16:43:44
On Jan 10, 2008, at 3:40 PM, Michael Fawcett wrote:
>
> My questions are - when creating your own library, when do you choose
> nested typedefs over a traits class,
Never.
> 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?
Traits classes are far better than nested typedefs, because one can
always specialize a traits class for an existing type---even if you
can't modify the type because it is built-in or comes from another
library that you can't modify.
- Doug
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk