mirror of https://github.com/SeanOMik/libki.git
pclass: Fix issue with Value compiling on CI
This commit is contained in:
parent
1a3dfbea48
commit
25355c22bc
|
@ -360,8 +360,8 @@ namespace pclass
|
||||||
template <typename DestT>
|
template <typename DestT>
|
||||||
Value ValueCaster::cast(const std::type_info &src_type, const Value& value)
|
Value ValueCaster::cast(const std::type_info &src_type, const Value& value)
|
||||||
{
|
{
|
||||||
const auto it = s_caster_lookup.find(src_type.hash_code());
|
const auto it = s_caster_lookup->find(src_type.hash_code());
|
||||||
if (it != s_caster_lookup.end())
|
if (it != s_caster_lookup->end())
|
||||||
return it->second->cast_value<DestT>(value);
|
return it->second->cast_value<DestT>(value);
|
||||||
throw cast_error(src_type, typeid(DestT));
|
throw cast_error(src_type, typeid(DestT));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue