Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-12 21:48:50


----- Original Message -----
From: "Rainer Deyke" <root_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.

argument-dependent lookup says that you can just write:

    get(p)

See the Boost.Function library for a precedent:

    pointer(p)

Regards,
Dave


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