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

Boost list run by bdawes at, gregod at, cpdaniel at, john at