Oopsies with index / new_index. Should fix @billw2012 's problem from #71

This commit is contained in:
ThePhD 2016-06-12 05:21:45 -04:00
parent 69b45e4d66
commit 9352473d59

View File

@ -184,6 +184,11 @@ namespace sol {
mustindex = true;
return;
}
else if (shimname == name_of(meta_function::new_index)) {
newindexfunc = call<I + 1>;
mustindex = true;
return;
}
l[index] = usertype_detail::make_reg(std::forward<N>(n), make_func<I>(std::forward<F>(f)));
++index;
}();