Commit 64fb18b8 authored by Jacob Potter's avatar Jacob Potter

Qualify PointerType conversion operator so that it only works on lvalues.

parent 51d6f433
......@@ -94,7 +94,8 @@ public:
// Allow implicit conversion to PointerType so it can be passed
// as argument to JNI functions expecting PointerType.
// All functions creating new local references should return LocalRef instead of PointerType
operator PointerType() const { return this->get(); }
operator PointerType() const & { return this->get(); }
operator PointerType() && = delete;
};
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment