Closed FranzPoize closed 1 year ago
Wrap is intended to opt-in storage of custom data as a Component of a dedicated Entity. This way, the custom data becomes part of the SaveState, which is a copy operation.
Everytime !
Well that's why there was a shared_ptr
It seems that it should be possible to make a Wrap of a move constructible Component. However the lambda capture at Entity.h#249 is not a move capture (or at least I am not understanding why it is not a move capture)
How to reproduce:
not sure if this is a problem with just a std::unique_ptr