diff --git a/sol/stack.hpp b/sol/stack.hpp index 06381641..6bb1608f 100644 --- a/sol/stack.hpp +++ b/sol/stack.hpp @@ -213,7 +213,7 @@ inline void push_tuple(lua_State* L, indices, T&& tuplen) { } template -auto ltr_pop(lua_State*, F&& f, types t, types<>, Vs&&... vs) -> decltype(f(std::forward(vs)...)) { +auto ltr_pop(lua_State*, F&& f, types, types<>, Vs&&... vs) -> decltype(f(std::forward(vs)...)) { return f(std::forward(vs)...); } template diff --git a/sol/table.hpp b/sol/table.hpp index 09421897..5ab57618 100644 --- a/sol/table.hpp +++ b/sol/table.hpp @@ -58,7 +58,6 @@ class table : public reference { template typename std::tuple_element>::type element_get(types, Tup&& key) const { typedef typename std::tuple_element>::type T; - typedef typename std::tuple_element::type U; push(); stack::push(state(), std::get(key)); lua_gettable(state(), -2); diff --git a/tests.cpp b/tests.cpp index 940b95fd..c986f73c 100644 --- a/tests.cpp +++ b/tests.cpp @@ -220,7 +220,7 @@ TEST_CASE("tables/functions_variables", "Check if tables and function calls work REQUIRE_NOTHROW(run_script(lua)); } -TEST_CASE("functions/return _order", "Check if return order is in the same reading order specified in Lua" ) { +TEST_CASE("functions/return_order_and_multi_get", "Check if return order is in the same reading order specified in Lua" ) { const static std::tuple triple = std::make_tuple(10, 11, 12); sol::state lua; lua.set_function( "f", [ ] {