$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: David Abrahams (dave_at_[hidden])
Date: 2003-09-29 16:01:39
"Powell, Gary" <powellg_at_[hidden]> writes:
> I'm a little concerned that it appears you can create bad pointers for
> this class by inadvertently not using placement new. I'd feel better
> about it if there was some way to prevent this.
Generic smart pointer factories are the right way:
shifted_ptr<U> p = make_shifted_ptr<T>(arg1, arg2, arg3, ref(arg4));
-- Dave Abrahams Boost Consulting www.boost-consulting.com