From 81fc56f77c006192d956ac11b1160e24f7b0a717 Mon Sep 17 00:00:00 2001 From: ninnghazad Date: Sun, 23 Aug 2020 01:23:10 +0200 Subject: [PATCH] Maybe this MSVC bug? https://developercommunity.visualstudio.com/content/problem/957737/constexpr-typeid-in-aggregate.html --- include/chaiscript/dispatchkit/proxy_functions.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/chaiscript/dispatchkit/proxy_functions.hpp b/include/chaiscript/dispatchkit/proxy_functions.hpp index 35a45daf..b6ed5b0d 100644 --- a/include/chaiscript/dispatchkit/proxy_functions.hpp +++ b/include/chaiscript/dispatchkit/proxy_functions.hpp @@ -81,7 +81,8 @@ namespace chaiscript { auto vals = t_params.to_vector(); - const std::type_info * floop = &typeid(Boxed_Value); + const std::type_info * floop = &typeid(int); + std:.cout << floop->name() << std::endl; // should print 'i' or smth like that constexpr Type_Info IAMATEST(false,false,false,false,false,floop,floop); std::cout << IAMATEST.name() << std::endl;