google / jni-bind

JNI Bind is a set of advanced syntactic sugar for writing efficient correct JNI Code in C++17 (and up).
Apache License 2.0
244 stars 29 forks source link

Allow `std::nullptr_t` for all Scopable types (this was an oversight in the API). #275

Closed copybara-service[bot] closed 6 months ago

copybara-service[bot] commented 6 months ago

Allow std::nullptr_t for all Scopable types (this was an oversight in the API).

In rare instances classes may want to have uninitialized members that reside on the stack. Previously, the base declaration will call the constructor with no arguments, but this API provides for declaring members with "LocalObject obj{nullptr};" syntax.

https://github.com/google/jni-bind/issues/274