Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-06-22 17:23:08


From: "William Kempf" <williamkempf_at_[hidden]>

> Another option is to provide a standalone templated get_raw_ptr() method
> that's specialized to just return the pointer if it's not a smart pointer
> and return get() otherwise. Then anywhere in your implementation where
you
> call p.get() you instead call get_raw_ptr(p).

Do you mean get_pointer()?

file:///C:/boost/libs/bind/mem_fn.html#get_pointer

It's already specialized for all our smart pointers AFAIK, but also AFAIK
there's no documentation to that effect :(

-Dave


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