diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index a27254f2..f9cee5f1 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 2017-08-07 18:22:38.155280 UTC -// This header was generated with sol v2.18.0 (revision 6eaa277) +// Generated 2017-08-07 18:54:03.754890 UTC +// This header was generated with sol v2.18.0 (revision c8728af) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -7295,7 +7295,7 @@ namespace sol { }; template - struct pusher, std::enable_if_t>::value>> { + struct pusher, std::enable_if_t>::value>> { static int push(lua_State* L, const T& tablecont) { return push(meta::has_key_value_pair>>(), L, tablecont); } @@ -7312,7 +7312,7 @@ namespace sol { static int push(std::false_type, lua_State* L, const T& tablecont) { auto& cont = detail::deref(detail::unwrap(tablecont)); - lua_createtable(L, stack_detail::get_size_hint(tablecont), 0); + lua_createtable(L, stack_detail::get_size_hint(cont), 0); int tableindex = lua_gettop(L); std::size_t index = 1; for (const auto& i : cont) { @@ -7348,7 +7348,7 @@ namespace sol { }; template - struct pusher, std::enable_if_t>::value>> { + struct pusher, std::enable_if_t>::value>> { static int push(lua_State* L, const T& v) { return stack::push(L, v); } diff --git a/sol/stack_push.hpp b/sol/stack_push.hpp index 6ffa81d9..0892d595 100644 --- a/sol/stack_push.hpp +++ b/sol/stack_push.hpp @@ -218,7 +218,7 @@ namespace sol { }; template - struct pusher, std::enable_if_t>::value>> { + struct pusher, std::enable_if_t>::value>> { static int push(lua_State* L, const T& tablecont) { return push(meta::has_key_value_pair>>(), L, tablecont); } @@ -235,7 +235,7 @@ namespace sol { static int push(std::false_type, lua_State* L, const T& tablecont) { auto& cont = detail::deref(detail::unwrap(tablecont)); - lua_createtable(L, stack_detail::get_size_hint(tablecont), 0); + lua_createtable(L, stack_detail::get_size_hint(cont), 0); int tableindex = lua_gettop(L); std::size_t index = 1; for (const auto& i : cont) { @@ -271,7 +271,7 @@ namespace sol { }; template - struct pusher, std::enable_if_t>::value>> { + struct pusher, std::enable_if_t>::value>> { static int push(lua_State* L, const T& v) { return stack::push(L, v); }