One day, I won't run into compiler differences and lame pedanticisms for C++.

Addresses #126
This commit is contained in:
ThePhD 2016-06-27 12:24:14 -04:00
parent 374acaa7f5
commit bd62d99fbc

View File

@ -306,7 +306,7 @@ namespace sol {
static int push(lua_State* L, umt_t&& umx) {
umt_t& um = make_cleanup(L, std::move(umx));
regs_t value_table{};
regs_t value_table{ {} };
int lastreg = 0;
(void)detail::swallow{ 0, (um.template make_regs<(I * 2)>(value_table, lastreg, std::get<(I * 2)>(um.functions), std::get<(I * 2 + 1)>(um.functions)), 0)... };
um.finish_regs(value_table, lastreg);