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 #677

Closed
jkczyz opened this issue Aug 25, 2020 · 1 comment
Closed

Standalone C++ bindings #677

jkczyz opened this issue Aug 25, 2020 · 1 comment

Comments

@jkczyz
Copy link
Contributor

jkczyz commented Aug 25, 2020

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 #618 (comment)

@TheBlueMatt
Copy link
Collaborator

Moved to lightningdevkit/ldk-c-bindings#32

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