diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index a7ded0457..be10e3a78 100644 --- a/single/sol/sol.hpp +++ b/single/sol/sol.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2016-10-23 21:02:40.993304 UTC -// This header was generated with sol v2.14.12 (revision 2ac711b) +// Generated 2016-10-23 23:29:11.436035 UTC +// This header was generated with sol v2.14.12 (revision 85329ca) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -4918,21 +4918,7 @@ namespace sol { }; template - struct checker { - template - static bool check(lua_State* L, int index, Handler&& handler, record& tracking) { - const type indextype = type_of(L, index); - // Allow nil to be transformed to nullptr - if (indextype == type::nil) { - tracking.use(1); - return true; - } - return checker, type::userdata, C>{}.check(types>(), L, indextype, index, std::forward(handler), tracking); - } - }; - - template - struct checker { + struct checker, type::userdata, C> { template static bool check(types, lua_State* L, type indextype, int index, Handler&& handler, record& tracking) { tracking.use(1); @@ -4971,11 +4957,28 @@ namespace sol { lua_pop(L, 1); return true; } + }; + + template + struct checker { + template + static bool check(lua_State* L, int index, Handler&& handler, record& tracking) { + const type indextype = type_of(L, index); + return checker, type::userdata, C>{}.check(types(), L, indextype, index, std::forward(handler), tracking); + } + }; + template + struct checker { template static bool check(lua_State* L, int index, Handler&& handler, record& tracking) { const type indextype = type_of(L, index); - return check(types(), L, indextype, index, std::forward(handler), tracking); + // Allow nil to be transformed to nullptr + if (indextype == type::nil) { + tracking.use(1); + return true; + } + return checker, type::userdata, C>{}.check(L, index, std::forward(handler), tracking); } }; @@ -5513,7 +5516,7 @@ namespace sol { template struct getter> { static T& get(lua_State* L, int index, record& tracking) { - return getter{}.get(L, index, tracking); + return getter{}.get(L, index, tracking); } }; @@ -7413,7 +7416,7 @@ namespace sol { template int operator()(types, index_value, types r, types a, lua_State* L, int, int start) const { detail::default_construct func{}; - return stack::call_into_lua(r, a, L, start, func, obj); + return stack::call_into_lua(r, a, L, start, func, obj); } };