buffer = new char[64];
buffer = std::make_shared<char>(char[64]); ???
È possibile assegnare memoria a un array utilizzando make_shared<>()
?Puoi allocare un array con qualcosa di equivalente a render_shared?
che potevo fare: buffer = std::make_shared<char>(new char[64]);
Ma questo comporta ancora chiamando nuovo, è la mia comprensione make_shared
è più sicuro e più efficiente.
'std :: vector tampone (64); ' –