From 25355c22bc66ccbef2c6d8102017dc6c8de4ab30 Mon Sep 17 00:00:00 2001 From: Joshua Scott Date: Sat, 15 Dec 2018 16:56:09 +0000 Subject: [PATCH] pclass: Fix issue with Value compiling on CI --- include/ki/pclass/Value.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); }