From 84554c90ea42f520af448cfedce9ea3b8bbe046b Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sun, 12 Mar 2017 21:42:43 -0400 Subject: [PATCH] VC++'s late instantiation killing me on things being used technically before they're defined, but being inside templates makes it bad... --- sol/simple_usertype_metatable.hpp | 2 -- sol/usertype_metatable.hpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sol/simple_usertype_metatable.hpp b/sol/simple_usertype_metatable.hpp index 2c96f0b7..c33f54c6 100644 --- a/sol/simple_usertype_metatable.hpp +++ b/sol/simple_usertype_metatable.hpp @@ -31,8 +31,6 @@ namespace sol { namespace usertype_detail { - const lua_Integer toplevel_magic = static_cast(0x00000001); - struct variable_wrapper { virtual int index(lua_State* L) = 0; virtual int new_index(lua_State* L) = 0; diff --git a/sol/usertype_metatable.hpp b/sol/usertype_metatable.hpp index 8bc8502d..8f65e1b0 100644 --- a/sol/usertype_metatable.hpp +++ b/sol/usertype_metatable.hpp @@ -36,6 +36,7 @@ namespace sol { namespace usertype_detail { + const lua_Integer toplevel_magic = static_cast(0x00020001); struct add_destructor_tag {}; struct check_destructor_tag {};