diff --git a/include/ki/pclass/Value.h b/include/ki/pclass/Value.h index 7351303..05b63a8 100644 --- a/include/ki/pclass/Value.h +++ b/include/ki/pclass/Value.h @@ -360,8 +360,8 @@ namespace pclass template Value ValueCaster::cast(const std::type_info &src_type, const Value& value) { - const auto it = s_caster_lookup.find(src_type.hash_code()); - if (it != s_caster_lookup.end()) + const auto it = s_caster_lookup->find(src_type.hash_code()); + if (it != s_caster_lookup->end()) return it->second->cast_value(value); throw cast_error(src_type, typeid(DestT)); }