I have a library function that has the following signature func(int argc,char** argv)
, where argv is an array of c-strings, and crafted manually according to the enclosing environment of the application.
Can I use unique_ptr
to manage the memory of argv
instead of allocating/deallocating them via new
/delete
operators ?
Aucun commentaire:
Enregistrer un commentaire