Comment Comment by TFortunato FYI, you can use a constructor with a shared/unique ptr.auto p = unique_ptr<Foo>(new Foo());Totally works, and may be easier to remember if you dont like the "magic" parameter forwarding. parent TFortunato 7 years ago
auto p = unique_ptr<Foo>(new Foo());
Totally works, and may be easier to remember if you dont like the "magic" parameter forwarding.