Fixes #1059 Methods with rvalue ref-qualifiers are ignored by default as it is not possible to have an rvalue temporary from the target language (which is needed to call the rvalue ref-qualified method). A warning 405 is shown mentioning the ignored rvalue ref-qualifier method which can be seen with the -Wextra option. cpp_refqualifier.i:15: Warning 405: Method with rvalue ref-qualifier ignored h() const &&. Usually rvalue and lvalue ref-qualifier overloaded methods are written - the lvalue method will then be wrapped.
22 lines
485 B
Java
22 lines
485 B
Java
|
|
import cpp11_ref_qualifiers.*;
|
|
|
|
public class cpp11_ref_qualifiers_runme {
|
|
|
|
static {
|
|
try {
|
|
System.loadLibrary("cpp11_ref_qualifiers");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
|
|
public static void main(String argv[]) {
|
|
Host h = new Host();
|
|
h.h1();
|
|
h.h2();
|
|
h.h();
|
|
}
|
|
}
|
|
|