r/cpp • • May 04 '24

Messing with lifetime

https://biowpn.github.io/bioweapon/2024/05/03/messing-with-lifetime.html
45 Upvotes

52 comments sorted by

View all comments

Show parent comment

1

u/TheoreticalDumbass :illuminati: May 04 '24

i dont understand implicit lifetime, but i thought start_lifetime_as starts the lifetime of an object without starting the lifetime of subobjects

1

u/TheoreticalDumbass :illuminati: May 04 '24

(youd have to start the lifetimes of subobjects yourself with for example placement new)