From 0d43a6f22bd10867e61f556574e5978c86716119 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Tue, 29 Nov 2016 12:51:21 -0500 Subject: [PATCH] fix const-correctness error in detection of is_container type --- sol/container_usertype_metatable.hpp | 4 ++-- sol/stack_push.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sol/container_usertype_metatable.hpp b/sol/container_usertype_metatable.hpp index cd27b7ae..adf3a3b0 100644 --- a/sol/container_usertype_metatable.hpp +++ b/sol/container_usertype_metatable.hpp @@ -487,7 +487,7 @@ namespace sol { } template - struct pusher, meta::neg>, std::is_base_of>>>>::value>> { + struct pusher>, meta::neg>, std::is_base_of>>>>::value>> { static int push(lua_State* L, const T& cont) { stack_detail::metatable_setup fx(L); return pusher>{}.push_fx(L, fx, cont); @@ -500,7 +500,7 @@ namespace sol { }; template - struct pusher, meta::neg>, std::is_base_of>>>>::value>> { + struct pusher>, meta::neg>, std::is_base_of>>>>::value>> { static int push(lua_State* L, T* cont) { stack_detail::metatable_setup>*> fx(L); return pusher>{}.push_fx(L, fx, cont); diff --git a/sol/stack_push.hpp b/sol/stack_push.hpp index 1c86d616..0bdae28b 100644 --- a/sol/stack_push.hpp +++ b/sol/stack_push.hpp @@ -108,7 +108,7 @@ namespace sol { }; template - struct pusher, meta::neg>, std::is_base_of>>>>::value>> { + struct pusher>, meta::neg>, std::is_base_of>>>>::value>> { template static int push(lua_State* L, Args&&... args) { return pusher>{}.push(L, std::forward(args)...);