mercredi 26 avril 2017

Using shared_ptr with char*

I can not create:

shared_ptr<char> n_char = make_shared<char>(new char[size_]{});

How can I create

char* chr = new char[size_]{}; 

using modern pointers?

Aucun commentaire:

Enregistrer un commentaire