From: Jaap Suter (J.Suter_at_[hidden])
Date: 2002-06-22 17:35:11
Thanks, just what I needed! And you're right about the docs, it's not in the
smart_ptr documentation and not in those web-based .hpp files of it either.
The only documentation reference is the one in mem_fn, but ofcourse that one
doesn't mention the smart_ptr specializations.
----- Original Message -----
From: "David Abrahams" <david.abrahams_at_[hidden]>
Sent: Sunday, June 23, 2002 00:23
Subject: Re: On ownership policies and boost::raw_ptr
> 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
> > and return get() otherwise. Then anywhere in your implementation where
> > call p.get() you instead call get_raw_ptr(p).
> Do you mean get_pointer()?
> It's already specialized for all our smart pointers AFAIK, but also AFAIK
> there's no documentation to that effect :(
> Unsubscribe & other changes:
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk