Feature #1593

MakeOne for creating One object

Added by Zbigniew Rebacz almost 3 years ago. Updated over 2 years ago.

Status:ApprovedStart date:01/01/2017
Priority:NormalDue date:
Assignee:Zbigniew Rebacz% Done:

0%

Category:CoreSpent time:-
Target version:Release 2017.2

Description

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.

History

#1 Updated by Zbigniew Rebacz almost 3 years ago

  • Description updated (diff)

#2 Updated by Zbigniew Rebacz almost 3 years ago

  • Description updated (diff)

#3 Updated by Zbigniew Rebacz over 2 years ago

  • Target version changed from Release 2017.1 to Release 2017.2

#4 Updated by Miroslav Fidler over 2 years ago

  • Status changed from New to Ready for QA
  • Assignee changed from Miroslav Fidler to Zbigniew Rebacz

#5 Updated by Zbigniew Rebacz over 2 years ago

  • Status changed from Ready for QA to Approved

Also available in: Atom PDF