1

Often i used std::shared_ptr<T>::shared_ptr() constructor.

But few days ago, i saw some text which is speaking like this.

"You need to use std::make_shared function instead of std::shared_ptr constructor"

What is diffrent these methods? What is better more?

Thanks to advance.

==EDIT==

I'm sorry. this question already exist.

Joy Hyuk Lee
  • 716
  • 9
  • 22

0 Answers0