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
  • 756
  • 11
  • 22
  • 1
    Don't be sorry. Stack Overflow search doesn't always work that well. I use Google to search for duplicates :-P – Brian Bi Sep 08 '14 at 06:14

0 Answers0