We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With C++14's generic lambdas, I should provide a way to make this work:
lua.writeFunction("print", [](auto val) { std::cout << val << std:endl }); lua.executeCode("print(true)"); // calls the lambda overload for "bool" lua.executeCode("print(18)"); // calls the lambda overload for "int"
This would also eliminate the writeFunction with template parameter.
writeFunction
The text was updated successfully, but these errors were encountered:
No branches or pull requests
With C++14's generic lambdas, I should provide a way to make this work:
This would also eliminate the
writeFunction
with template parameter.The text was updated successfully, but these errors were encountered: