Elektrine lite

← Feed

@asperamanca@mastodon.social

Post #4254460

2026-03-21 09:49 UTC

@jakub_neruda@techhub.social I would add one more option: Implicit sharing. It uses shared pointers internally, but behaves like a copied value to the outside. It will only do a deep copy if someone wants to change their copy. In your example, you would probably just pass ownership of AnimationStates, no copy, no crash. Does make it somewhat harder to debug memory leaks.

Replies (0)

No replies.