Schwungus-Software / Bombswab

A game about defusing bombs and/or causing chaos
The Unlicense
0 stars 0 forks source link

Replace most raw pointers with a `shared_ptr`/`weak_ptr` combo #44

Closed nonk123 closed 9 months ago

nonk123 commented 9 months ago

This should solve almost all runtime errors including segfaults.

nonk123 commented 9 months ago

Now that I think about it, a custom "garbage-collected" ID type would be nice to have. It would still use shared_ptr as the backend while providing a more ergonomic API.

nonk123 commented 9 months ago

ID has been implemented. Doing the replacement is just a matter of time now.