You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
当我将 snap-djinni 移植到自己的项目,并尝试使用 DataRef时,有以下报错: DataRef_jni.cpp:34:25: error: object of type 'GlobalRef<jclass>' (aka 'GlobalRef<_jclass *>') cannot be assigned because its copy assignment operator is implicitly deleted classObject = jniFindClass("java/nio/ByteBuffer");
The tips are as follows: copy assignment operator is implicitly deleted because 'GlobalRef<_jclass *>' has a user-declared move constructor GlobalRef(GlobalRef && obj)
Have you encountered similar problems?
I did not encounter the above problems when I tried to compile and run the demo.
The text was updated successfully, but these errors were encountered:
which is indeed a call to the assignment but it should be a call to the move assignment because on the right hand is a function calljniFindClass(), so it should be an r-value.
当我将 snap-djinni 移植到自己的项目,并尝试使用 DataRef时,有以下报错:
DataRef_jni.cpp:34:25: error: object of type 'GlobalRef<jclass>' (aka 'GlobalRef<_jclass *>') cannot be assigned because its copy assignment operator is implicitly deleted classObject = jniFindClass("java/nio/ByteBuffer");
The tips are as follows:
copy assignment operator is implicitly deleted because 'GlobalRef<_jclass *>' has a user-declared move constructor GlobalRef(GlobalRef && obj)
Have you encountered similar problems?
I did not encounter the above problems when I tried to compile and run the demo.
The text was updated successfully, but these errors were encountered: