Usefulness of std::make_unique and std::make_shared in C++1z

Viewed 1285

With C++17 we get template type deduction for class templates. So a lot of make functions could become obsolete.

How about make_unique and make_shared ?

So we can write

unique_ptr myPtr(new MyType());
// vs
auto myPtr = make_unique<MyType>();

so can we forget about those functions?

2 Answers
Related