diff --git a/include/chaiscript/dispatchkit/type_info.hpp b/include/chaiscript/dispatchkit/type_info.hpp index e15e508..62dc081 100644 --- a/include/chaiscript/dispatchkit/type_info.hpp +++ b/include/chaiscript/dispatchkit/type_info.hpp @@ -136,9 +136,11 @@ namespace chaiscript static Type_Info get() { - return Type_Info(std::is_const::type>::type>::value, std::is_reference::value, std::is_pointer::value, + return Type_Info(std::is_const::type>::type>::value, + std::is_reference::value, std::is_pointer::value, std::is_void::value, - std::is_arithmetic::value && !std::is_same::type, bool>::value, + (std::is_arithmetic::value || std::is_arithmetic::type>::value) + && !std::is_same::type, bool>::value, &typeid(T), &typeid(typename Bare_Type::type)); }