paleolimbot commented on issue #48:
URL: https://github.com/apache/arrow-nanoarrow/issues/48#issuecomment-1248025614
Alternatively, a bit more heavy-handed but probably more useful...define
wrapper objects with the proper move-only semantics:
```cpp
#include "nanoarrow.h"
namespace nanoarrow {
class CArray {
struct ArrowArray array_;
// delete the copy constructor
// define the move constuctor
CArray() { array_.release = nullptr; }
~CArray() { if (array_.release) array_.release(&array); }
};
}
```
--
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]