
29 Mar
2006
29 Mar
'06
7:20 p.m.
David Abrahams wrote:
David Abrahams <dave@boost-consulting.com> writes:
Unfortunately for this particular facility, the converting constructor is explicit, so you can't do
f(new_<T>(a, b, c))
if f takes a shared_ptr<T>.
I just realized we could probably fix this by removing an "explicit" from the ctor that accepts an rvalue auto_ptr. What about that, Peter? This seems like a poster child for rvalue distinction!
Done.