Feature #1593

Updated by Zbigniew Rebacz over 7 years ago

Alternative to make_shared and make_unique in standard library.

<pre>
One<T> one = MakeOne<T>(...);

// Still valid - however in below case you need to explicitly use new keyword - that means troubles...
One<T> one(new T());
</pre>

MakeOne looks much better for dependency injection that one.

Back