8000 GlobalRef‘s copy assignment operator is implicitly deleted · Issue #158 · Snapchat/djinni · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
GlobalRef‘s copy assignment operator is implicitly deleted #158
Open
@0Litost0

Description

@0Litost0

当我将 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0