diff --git a/include/chaiscript/dispatchkit/dispatchkit.hpp b/include/chaiscript/dispatchkit/dispatchkit.hpp index be4d8a7..02822b1 100644 --- a/include/chaiscript/dispatchkit/dispatchkit.hpp +++ b/include/chaiscript/dispatchkit/dispatchkit.hpp @@ -1176,11 +1176,11 @@ namespace chaiscript const auto rhssize = rhsparamtypes.size(); #ifdef CHAISCRIPT_HAS_MAGIC_STATICS - auto boxed_type = user_type(); - auto boxed_pod_type = user_type(); -#else static auto boxed_type = user_type(); static auto boxed_pod_type = user_type(); +#else + auto boxed_type = user_type(); + auto boxed_pod_type = user_type(); #endif for (size_t i = 1; i < lhssize && i < rhssize; ++i)