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

Standalone C++ bindings #32

Open
TheBlueMatt opened this issue Jun 23, 2021 · 0 comments
Open

Standalone C++ bindings #32

TheBlueMatt opened this issue Jun 23, 2021 · 0 comments

Comments

@TheBlueMatt
Copy link
Collaborator

Moved from lightningdevkit/rust-lightning#677

Discussed offline. In this variation, the C++ class would be LDKObject. Since the copy constructor would be deleted, any object passed to rust_fn would need to be an rvalue; it would be a compilation error to pass the object as an lvalue. Instead, the user would need to explicitly std::move the lvalue in order to pass it to rust_fn as an rvalue, which would trigger the move constructor.

Agreed to open an issue and prioritize based on user need for the C++ header.

Originally posted by @jkczyz in lightningdevkit/rust-lightning#618 (comment)

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