
16 Sep
2009
16 Sep
'09
8:34 a.m.
The difficulty that your example demonstrates is caused by the nature of template template parameters. scoped_ptr should not be blamed for
Dmitry Goncharov wrote: that. I agree, moreover I think that the advantages of this patch (often required in the list) justify the 1% use cases of Andrey Semashev's sample that in my opinion can be simplified in this way: template<typename T, typename P> void make_ptr(P &p) { p.reset(new T()); }