Ramito

Results 13 comments of Ramito

@skypjack Thanks for the reply! Hmmm... I am actually using v3.9! ![image](https://user-images.githubusercontent.com/450315/149225559-9af888f1-1ea2-46fb-bd48-337e54921263.png) But if I make a basic registry I cannot call `storage` without a template parameter. What may I...

If `registry.storage()` is supposed to compile with 3.9 seems I need to dig around. This is a fresh copy of entt for this project, not an upgrade, but I wonder...

This is certainly of interest to me, so I would very much appreciate an example! Thank you very much for your help! (And the library of course!)

This does let me move forward, thank you very much for the example! Purely for academic interest, what I was hoping for is a way to do this without having...

Hey! So that snippet looks exactly like what I need at this moment (still experimenting!). While looking at it, though, I had to figure out why I cannot access `storage`...

You might want to be aware that this link: ![image](https://user-images.githubusercontent.com/450315/150243599-1ac5fbda-1cf3-420f-a348-672c3f290a62.png) leads to a version without it. Thanks for all the responses so far!

Hello! A few updates on this. Finally got around field testing these ideas. First is that your example above needs some tweaks: Your example: ``` for(auto [id, storage]: src_registry.storage()) {...

Thank you @chengts95! Any recommendations on how to make sure the storage has the pool, sort of adding/removing a component just to be sure? I would like to use `assure`...

Thank you for the reply. I understand that. My question is what would be a good way to create the pool on the target registry (yes using type specific templates)...

This is what I am settling with for now: ``` auto& target_storage = target_registry.storage(); // Hack: Ensure pool exists in target registry if (target_storage.capacity() == 0) { target_storage.clear(); } ```...