[DiscordArchive] Um - I don't think MySQL is GPL, is it?
[DiscordArchive] Um - I don't think MySQL is GPL, is it?
Archived author: Pyrex • Posted: 2024-11-11T22:48:44.066000+00:00
Original source
a smart pointer is a generic type that executes delete in a specific kind of situation!!
Archived author: andriuspel • Posted: 2024-11-11T22:49:32.233000+00:00
Original source
yea, these pointers auto manages their object lifetime, you can set your own custom deleters, also each of them sets ownership
Archived author: Pyrex • Posted: 2024-11-11T22:49:45.055000+00:00
Original source
for instance, if I make a bunch of copies of a shared_ptr, the code in the shared_ptr type will count how many copies there are and free the value when the last one goes away
Archived author: nerdsville • Posted: 2024-11-11T22:50:01.367000+00:00
Original source
Ah
Archived author: nerdsville • Posted: 2024-11-11T22:50:12.732000+00:00
Original source
That makes sense
Archived author: nerdsville • Posted: 2024-11-11T22:50:16.214000+00:00
Original source
That's pretty cool
Archived author: Pyrex • Posted: 2024-11-11T22:50:36.163000+00:00
Original source
disclaimer: I learned this concept in Rust, which also has them, but they work a little differently
Archived author: Pyrex • Posted: 2024-11-11T22:51:10.965000+00:00
Original source
I'm pretty new to C++!
Archived author: andriuspel • Posted: 2024-11-11T22:51:13.094000+00:00
Original source
smart_pointers still can leak memory, if you store shared_ptr to some global container and object/container is never deleted or if you make finite callback cycle
Archived author: nerdsville • Posted: 2024-11-11T22:51:27.741000+00:00
Original source
"learn rust the hard way" - write C++, then learn same concepts in rust jk