Fix static usage of Type_Info objects

This commit is contained in:
Jason Turner 2015-05-30 15:36:25 -06:00
parent 4b577f1f2a
commit 023a3edf40

View File

@ -1176,11 +1176,11 @@ namespace chaiscript
const auto rhssize = rhsparamtypes.size(); const auto rhssize = rhsparamtypes.size();
#ifdef CHAISCRIPT_HAS_MAGIC_STATICS #ifdef CHAISCRIPT_HAS_MAGIC_STATICS
auto boxed_type = user_type<Boxed_Value>();
auto boxed_pod_type = user_type<Boxed_Number>();
#else
static auto boxed_type = user_type<Boxed_Value>(); static auto boxed_type = user_type<Boxed_Value>();
static auto boxed_pod_type = user_type<Boxed_Number>(); static auto boxed_pod_type = user_type<Boxed_Number>();
#else
auto boxed_type = user_type<Boxed_Value>();
auto boxed_pod_type = user_type<Boxed_Number>();
#endif #endif
for (size_t i = 1; i < lhssize && i < rhssize; ++i) for (size_t i = 1; i < lhssize && i < rhssize; ++i)