3 Oct
2013
3 Oct
'13
6:07 p.m.
On 10/3/2013 1:18 PM, Thorsten Ottosen wrote:
On 03-10-2013 19:04, Andrey Semashev wrote:
On Thursday 03 October 2013 18:37:45 Thorsten Ottosen wrote:
with use like
shared_obj<Foo> sharedFoo = make_shared_obj( 42, "foo" );
would be good names.
I agree, this is a good alternative. Although why not immediately this:
shared_obj<Foo> sharedFoo( 42, "foo" );
Seems good. As long as it implements the "allocate counts and object in one allocation".
And now there's no pointer argument with preconditions to worry about, and no issue with pointer/bool conversion since it's not a pointer. Jeff