Implement simple passthrough type that can enable custom destructor implementations executed before proxied object.
This proxy could also forward operator(), but frustratingly, it isn't sufficient to forward for types like LocalObject, because it would imply passing const char* which the InvocableMap can't see through in a constexpr way.
I had hoped this coudl be used for a "non-deleting" LocalObject.
Implement simple passthrough type that can enable custom destructor implementations executed before proxied object.
This proxy could also forward operator(), but frustratingly, it isn't sufficient to forward for types like
LocalObject
, because it would imply passingconst char*
which the InvocableMap can't see through in a constexpr way.I had hoped this coudl be used for a "non-deleting" LocalObject.
See https://github.com/google/jni-bind/issues/207 for context.