Nowadays, you can do: auto sh_ptr = make_shared(....); // Since C++11 or auto uniq_ptr = make_unique(....); // Since C++14 It saves you from having to explicitly name the type parameter and you just need to pass in the…
Nowadays, you can do: auto sh_ptr = make_shared(....); // Since C++11 or auto uniq_ptr = make_unique(....); // Since C++14 It saves you from having to explicitly name the type parameter and you just need to pass in the…