SoftServe interview question

Why using std::make_shared insted just new when creating an instance of std::shared_ptr?

Interview Answer

Anonymous

May 12, 2021

Because it is faster, you eliminate object copying.