0

I'm curious, what is the difference between this:

std::unique_ptr<char> ptr = std::unique_ptr<char>(new char[1000]);

and this:

std::unique_ptr<char> ptr(new char[1000]);

Also, this is unrelated, but how can I use make_unique for an array without initializing the values?

ManUser123
  • 41
  • 1
  • 5

0 Answers0