
20 Mar
2005
20 Mar
'05
2:48 p.m.
Thorsten Ottosen wrote:
"Peter Dimov" <pdimov@mmltd.net> wrote in message news:003e01c52d52$42ddfda0$6501a8c0@pdimov2...
Thorsten Ottosen wrote:
Is there any reason address_of is not defined for shared_ptr, scoped_ptr etc.?
I've no idea what you mean, sorry.
well, currently I have to do
T* = &*ptr;
to get the address.
#include <boost/get_pointer.hpp> void f( Sp ps ) { using boost::get_pointer; typename pointee<Sp>::type * pt = get_pointer( ps ); } HTH