mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
This references thing is really going to hurt me from VC++ one day in production
This commit is contained in:
parent
c2b8a9cc57
commit
6520f1bc8e
|
@ -49,7 +49,7 @@ int main(int, char**) {
|
|||
// Our recursive function
|
||||
// We use some lambda techniques and pass the function itself itself so we can recurse,
|
||||
// but a regular function would work too!
|
||||
auto fx = [&lua, &things](auto& f, auto& tbl) -> void {
|
||||
auto fx = [&lua, &things](auto& f, auto tbl) -> void {
|
||||
// You can iterate through a table: it has
|
||||
// begin() and end()
|
||||
// like standard containers
|
||||
|
|
Loading…
Reference in New Issue
Block a user