Jan 3, 2024
1
1
Why doesn’t my code compile when I change a shared_ptr<T>(p)
to an equivalent make_shared<T>(p)
?

It depends on who is doing the parameter conversion.