Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-06-26 11:34:09


From: "Peter Dimov" <pdimov_at_[hidden]>

> Finer control:
>
> There are three levels of access: p.get(), get_pointer(p), and
mem_fn(&X::f,
> p). For some pointers, only the first (arguably) should work (weak_ptr);
> others need the second but not the last (*_array, probably scoped_ptr too
> since it can't go in containers.)

I'm not clear on all the arguments, but I'm willing to trust that you've
got all this worked out.

> Forwarding:
>
> template<class P> ??? mem_fn_get_poiner(P const & p)
> {
> return get_pointer(p);
> }
>
> It depends on how get_pointer is specified, of course. A compromise would
be
> to define it for all non-array pointers sans weak_ptr.

Ah. typeof() again ;-/

-Dave


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