qq so close to perfect

This commit is contained in:
ThePhD 2016-07-07 17:02:11 -04:00
parent 27174aba9c
commit 47f29db964
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ namespace sol {
static int push(lua_State* L, constructor_wrapper<Fxs...> c) {
lua_CFunction cf = call_detail::call_user<T, false, false>;
int closures = stack::push(L, make_user(std::move(c)));
return stack::push(L, c_closure(cf, 1));
return stack::push(L, c_closure(cf, closures));
}
};

View File

@ -90,7 +90,7 @@ namespace sol {
struct add_destructor_tag {};
struct check_destructor_tag {};
struct verified_tag {} const verified{};
struct simple_tag {} const simple;
struct simple_tag {} const simple{};
template <typename T>
struct is_constructor : std::false_type {};