A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bytedeco/javacpp/issues/492 below:

Problem with C++ function overloading mapping to the same java type · Issue #492 · bytedeco/javacpp · GitHub

class TestTemplate {
public:
       int test(int *a) {}
       int test(unsigned*a) {}
};

JavaCpp will only generate one function

       public native int test(IntPointer a);
       public native int test(IntBuffer a);
       public native int test(int[] a);

It does not work by specifying the following

        infoMap.put(new Info("TestTemplate::test(unsigned *)").javaNames("testUnsigned"));

or

        infoMap.put(new Info("TestTemplate::test(unsigned*)").javaNames("testUnsigned"));

How to help JavaCpp generate both functions?
Any guide is appreciated.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4