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

Copy constructor #82

Open
DimaMelnichenko opened this issue Dec 14, 2017 · 0 comments
Open

Copy constructor #82

DimaMelnichenko opened this issue Dec 14, 2017 · 0 comments

Comments

@DimaMelnichenko
Copy link

Hi, thanks for the cool lib.
I have a question with a userdata objects.
For sample:
--lua code
"userdataObj = userdataObj + 2"
Code works fine with your wrapper. There is an overloaded operator __add, it is called well.
But this is called the copy constructor. How do I invoke the assignment operator instead?
Two construct objects is too much for this operation )))

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

1 participant