From 1ea608babee751dfa4130d76c86d526df5da9cc3 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Sat, 11 Jul 2015 18:32:47 -0600 Subject: [PATCH] Better detect arithmetic types #192 --- include/chaiscript/dispatchkit/type_info.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)); }