bkietz commented on code in PR #404:
URL: https://github.com/apache/arrow-nanoarrow/pull/404#discussion_r1576819828


##########
src/nanoarrow/nanoarrow.hpp:
##########
@@ -222,6 +221,9 @@ class Unique {
   T* operator->() noexcept { return &data_; }
   const T* operator->() const noexcept { return &data_; }
 
+  /// \brief Check for validity
+  explicit operator bool() const { return data_.release != nullptr; }

Review Comment:
   Well, that can be a follow up then.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to