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

std::function parameter in std::function #33

Closed
nadrolinux opened this issue Dec 30, 2021 · 5 comments
Closed

std::function parameter in std::function #33

nadrolinux opened this issue Dec 30, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@nadrolinux
Copy link

Hello,
At first, congrats for this very interesting project. I try to implement it into project and found a first problem. A following code doesn't compile:

class TestCase : public scapix::bridge::object<TestCase>
{
public:
    void problem(std::function<void(std::function<void()>)> value){};
};

I see a following error (I try to generate JNI bridges for Android):

error: no member named 'jni' in 'scapix::link::java::convert<scapix::link::java::ref<scapix::link::java::function<scapix::meta::string<'p', 'l', '/', 'a', 'b', 'c', '/', 't', 'e', 's', 't', '/', 'T', 'e', 's', 't', 'C', 'a', 's', 'e', '$', 'F', 'u', 'n', 'c', 't', 'i', 'o', 'n', '1'>, void ()>, scapix::link::java::detail::api::scope::generic>, std::function<void ()>>'

Do you have any plans about implement support for stuff like this?
Best regards,

@Boris-Rasin
Copy link
Member

Thank you, it's great to hear you like the project.

I knew this functionality was missing (for Java bridge, it is implemented for Objective C/Swift). Never got around to implementing it, since no one asked. I will implement it now, should be ready in a few days.

@Boris-Rasin Boris-Rasin added the bug Something isn't working label Jan 1, 2022
@nadrolinux
Copy link
Author

Great news! Thanks for a really quick support.

@nadrolinux
Copy link
Author

Hello,
How looks a situation with this issue?
Patryk

@Boris-Rasin
Copy link
Member

48c34a9

@nadrolinux
Copy link
Author

It seems to work. Thanks for a fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants