Multiple components of the same type as separate #869
-
Quick question about having multiple components of the same type as distinct components (connected to the title of #475). Wouldn't it be straightforward to add a templated wrapper type to use in emplacing and view operations, but which gets abstracted away on access?
Used like
The idea is to make the compiler treat them as different types through a wrapper, while hiding the ".data unwrapping" away through access functions (view.each, registry.get, etcc) Such wrapper could also have a third template parameters which when specialized defines "static constexpr auto in_place_delete = true;" on the wrapper itself, so as a bonus you get rid of polluting the actual components headers. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Multiple pools of the same type are supported now. Not sure what problem this wrapper solves that they don't solve already. 🤔 |
Beta Was this translation helpful? Give feedback.
Multiple pools of the same type are supported now. Not sure what problem this wrapper solves that they don't solve already. 🤔