|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-01-14 10:11:01
From: "Greg Colvin" <gcolvin_at_[hidden]>
> > This would not be a major issue for a rarely used function, but I have
> > found that I tend to make extensive use of 'boost::shared_ptr::get'.
> > I would not like to replace every instance of 'p.get()' with
> > 'boost::GetImplPtr(p)' or something equally long.
>
> If you hate typing as much as I do you can just say '&*p',
> which works for raw pointers as well.
&*p dereferences the pointer, while p.get() does not.
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk