Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-01-06 09:17:27


"David B. Held" <dheld_at_[hidden]> writes:

> "David Abrahams" <dave_at_[hidden]> wrote in message
> news:ullomp2gp.fsf_at_boost-consulting.com...
>>
>> Why is shared_ptr<T>::value_type == T instead of
>> remove_cv<T>::type, as with iterators?
>
> What's the benefit in stripping cv-qualifications?

Only consistency.

> Seems like the
> user can do that herself, whereas getting T might be harder.

There's always element_type for that purpose.

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