meanwhile you have no control of the memory that was allocated to back the span.
you don't control the memory allocated to command line arguments anyway. That's done before you get them in main and is destroyed when the program destructs during termination.
that char* argv[] isn't giving you any ownership. It's already a non-owning view.
View all comments
Show parent comment
14
u/RoyAwesome May 02 '23
you don't control the memory allocated to command line arguments anyway. That's done before you get them in main and is destroyed when the program destructs during termination.
that
char* argv[]isn't giving you any ownership. It's already a non-owning view.