Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-01-07 09:02:31


"Peter Dimov" <pdimov_at_[hidden]> writes:

> David Abrahams wrote:
>> Why is shared_ptr<T>::value_type == T instead of remove_cv<T>::type,
>> as with iterators?
>
> No particular reason. value_type isn't a part of the documented interface
> anyway, and remove_cv would require a dependency on type_traits. Is this a
> problem?

Not particularly, thanks.

BTW, the problem I asked you about privately with iterator_traits and
smart pointers has been solved separately -- see boost/pointee.hpp
and boost/indirect_reference.hpp.

-- 
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