mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Oopsies with index / new_index. Should fix @billw2012 's problem from #71
This commit is contained in:
parent
69b45e4d66
commit
9352473d59
|
@ -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;
|
||||
}();
|
||||
|
|
Loading…
Reference in New Issue
Block a user