-
Notifications
You must be signed in to change notification settings - Fork 744
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
Support for std::string_view #1443
Comments
We can usually just map those to |
Thanks @saudet So given the following toy case as below:
Is the below code a correct way to map
|
Something like that should work, yes.
|
If i remember well, this works for functions taking a |
Thanks for your answers. In my case, methods are taking |
I have, however, problem with
And corresponding Java file as in the post above (with
I have tried several other configurations but they all failed. Could you please point me in the correct direction? |
std::vector<std::string_view> is a different type, you'll need to define
something for that as well.
|
Something like this should work: https://github.com/bytedeco/javacpp-presets/blob/master/pytorch/src/main/java/org/bytedeco/pytorch/presets/torch.java#L607 |
I have tried this before, unfortunately with the following error:
|
Since your API probably doesn't need that get() method, you could patch that manually, just to get things working for now |
Hi,
I'm new to javacpp. I'm wondering if you could easily add support to
std::string_view
, in a similar way like you've added support forc10::string_view
in #PR1392Or maybe, is there an easier way to use
std::string_view
type in javacpp?The text was updated successfully, but these errors were encountered: