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

Binding pointer to pointer type doesn't compile #1624

Open
deadlocklogic opened this issue Aug 25, 2024 · 0 comments
Open

Binding pointer to pointer type doesn't compile #1624

deadlocklogic opened this issue Aug 25, 2024 · 0 comments

Comments

@deadlocklogic
Copy link
Contributor

Consider

struct Test {};

and the binding code

Test1** test;
lua["Test"] = test;

Error messages:

/opt/compiler-explorer/libs/sol2/trunk/include/sol/stack_core.hpp:1416:28: error: no matching function for call to object of type 'std::less<void>'
/opt/compiler-explorer/libs/sol2/trunk/include/sol/stack_core.hpp:1416:28: error: no matching function for call to object of type 'std::less_equal<void>'
/opt/compiler-explorer/libs/sol2/trunk/include/sol/stack_core.hpp:1416:28: error: no matching function for call to object of type 'std::equal_to<void>'

@ThePhD Any ideas on how to pass raw pointer to 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

1 participant