Inconsistency with registry.storage<const Component>
and storage_for_type<const Component>
#1217
Labels
registry.storage<const Component>
and storage_for_type<const Component>
#1217
registry.storage<const Component>
would give back aconst Storage&
, but the function runs into a static_assert, which says that only non-const Components are allowed (e.g.registry.storage<Component>
, this gives back a non-constStorage&
)Either const Components should be allowed, or there is no use for substituting the return type into a const Storage&.
This is annoying when one uses the registry's
storage_for_type<Component>
to figure out what Storage a Component would have.The text was updated successfully, but these errors were encountered: