r/cpp • • Oct 24 '24

Why Safety Profiles Failed

https://www.circle-lang.org/draft-profiles.html
180 Upvotes

347 comments sorted by

View all comments

Show parent comment

-1

u/simonask_ Oct 25 '24

Not sure, but consider that lifetimes do not only appear in function declarations, but also in types. Assuming a model similar to Rust’s, lifetimes are generic parameters that aren’t necessarily tied to a particular variable’s name.

2

u/TheoreticalDumbass :illuminati: Oct 25 '24

I'm not sure what you mean as I don't know Rust, but I was thinking lifetimeof() would give an object of scalar type, so you could pass it as a non type template param