Feature #1593
MakeOne for creating One object
Status: | Approved | Start date: | 01/01/2017 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Zbigniew Rebacz | % Done: | 0% | |
Category: | Core | Spent 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 over 7 years ago
- Description updated (diff)
#2 Updated by Zbigniew Rebacz over 7 years ago
- Description updated (diff)
#3 Updated by Zbigniew Rebacz over 7 years ago
- Target version changed from Release 2017.1 to Release 2017.2
#4 Updated by Miroslav Fidler over 7 years ago
- Status changed from New to Ready for QA
- Assignee changed from Miroslav Fidler to Zbigniew Rebacz
#5 Updated by Zbigniew Rebacz over 7 years ago
- Status changed from Ready for QA to Approved