registry: minor changes

This commit is contained in:
Michele Caini
2022-05-11 07:47:58 +02:00
parent d44d1325fc
commit 1ddad3577c

View File

@@ -198,7 +198,7 @@ struct registry_context {
template<typename Type>
[[nodiscard]] bool contains(const id_type id = type_id<Type>().hash()) const {
const auto it = data.find(id);
return it != data.end() && it->second.type() == type_id<Type>();
return it != data.cend() && it->second.type() == type_id<Type>();
}
private: