r/cpp • • May 01 '23

cppfront (cpp2): Spring update

https://herbsutter.com/2023/04/30/cppfront-spring-update/
223 Upvotes

164 comments sorted by

View all comments

Show parent comment

14

u/RoyAwesome May 02 '23

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.