Skip to content
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

const std::string& class function #166

Open
ptdave20 opened this issue Dec 16, 2016 · 1 comment
Open

const std::string& class function #166

ptdave20 opened this issue Dec 16, 2016 · 1 comment

Comments

@ptdave20
Copy link

When using a const std::string reference on a function, it fails with an unregistered type. If you use std::string with no const or reference, it executes without problems. Not sure if this is intentional or not.

^LUA NOOB

@adam4813
Copy link
Contributor

I believe reference types don't work as it isn't a 2-way street. Try pass by pointer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants