MakeOne for creating One object
|Assignee:||Zbigniew Rebacz||% Done:|
|Target version:||Release 2017.2|
Alternative to make_shared and make_unique in standard library.
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());
MakeOne looks much better for dependency injection that one.