From 89e0b62f2d4af2f0d126076f0b5668124c991b06 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Mon, 1 Aug 2016 04:04:44 -0400 Subject: [PATCH] const-ness fucking me in the ass again --- single/sol/sol.hpp | 8 ++++---- sol/stack_check.hpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index e5de84a7..06dbc85e 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-07-29 05:11:56.948443 UTC -// This header was generated with sol v2.10.0 (revision 045d937) +// Generated 2016-08-01 08:04:23.598113 UTC +// This header was generated with sol v2.10.0 (revision 01bfeda) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -4611,13 +4611,13 @@ namespace sol { struct checker { template static bool check(lua_State* L, int index, Handler&& handler, record& tracking) { - tracking.use(1); 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{}.check(types(), L, indextype, index, std::forward(handler), tracking); + return checker, type::userdata, C>{}.check(types>(), L, indextype, index, std::forward(handler), tracking); } }; diff --git a/sol/stack_check.hpp b/sol/stack_check.hpp index 4c0986a1..3e83c05d 100644 --- a/sol/stack_check.hpp +++ b/sol/stack_check.hpp @@ -238,13 +238,13 @@ namespace sol { struct checker { template static bool check(lua_State* L, int index, Handler&& handler, record& tracking) { - tracking.use(1); 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{}.check(types(), L, indextype, index, std::forward(handler), tracking); + return checker, type::userdata, C>{}.check(types>(), L, indextype, index, std::forward(handler), tracking); } };