registry: make ::storage<T> return type explicit

This commit is contained in:
Michele Caini
2023-04-14 12:33:41 +02:00
parent 36c21cf7fa
commit 4d57d5c327

View File

@@ -428,7 +428,7 @@ public:
* @return The storage for the given component type.
*/
template<typename Type>
decltype(auto) storage(const id_type id = type_hash<Type>::value()) {
storage_for_type<Type> &storage(const id_type id = type_hash<Type>::value()) {
return assure<Type>(id);
}
@@ -444,7 +444,7 @@ public:
* @return The storage for the given component type.
*/
template<typename Type>
decltype(auto) storage(const id_type id = type_hash<Type>::value()) const {
const storage_for_type<Type> &storage(const id_type id = type_hash<Type>::value()) const {
return assure<Type>(id);
}