buffer = new char[64];
buffer = std::make_shared<char>(char[64]); ???
Can you allocate memory to an array using make_shared<>()
?
I could do: buffer = std::make_shared<char>( new char[64] );
But that still involves calling new, it's to my understanding make_shared
is safer and more efficient.