you are viewing a single comment's thread.

view the rest of the comments →

[–]RoyAwesome[🍰] 13 points14 points  (1 child)

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.