pclass: Fix issue with Value compiling on CI

This commit is contained in:
Joshua Scott 2018-12-15 16:56:09 +00:00
parent 1a3dfbea48
commit 25355c22bc
1 changed files with 2 additions and 2 deletions

View File

@ -360,8 +360,8 @@ namespace pclass
template <typename DestT>
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<DestT>(value);
throw cast_error(src_type, typeid(DestT));
}