-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ iterators for Lua tables #72
Comments
Try using sol::table t = ...;
t.for_each( /* function that takes key, value */ ) ; Note that this is only present in the |
error: 'class sol::table' has no member named 'for_each' On Sun, Feb 14, 2016 at 7:57 PM, The Phantom Derpstorm <
https://github.com/thinlizzy/ http://die-xml.googlecode.com/ - C++11 and |
Please pull from the develop branch of |
Hi! Does the develop branch also support checking if a table key exists? I've seen sol2 has sol::optional, which also works for me. Perhaps I should early migrate to sol2, instead of trying the develop branch? |
Yes. sol2 is no longer experimental and has support for the features you're looking for. |
Any plans on adding iteration capabilities in sol::table ?
The text was updated successfully, but these errors were encountered: