Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-09-30 16:37:44


"Fredrik Blomqvist" <fredrik_blomqvist_at_[hidden]> writes:

> Hi!
>
> Looks good! I believe this is a highly needed complement to generic code.
>
> A question though: Have you considered using separated-traits instead? (see
> for example the new iterator_traits code by David Abrahams)
>
> Like so:
> container_value<C>::type;
> container_reference<C>::type;
> container_difference<C>::type;
> etc ....
>
> Philosofically I'd say this would be more in-line with the Open Closed
> Principle. (and IIRC David Abrahams also raised the idea of refactoring
> boost::call_traits into separate traits-classes a while ago.)

Yes, it's important to do it that way for many reasons, not least of
which is MPL interoperability.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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