paleolimbot commented on PR #776:
URL: https://github.com/apache/arrow-nanoarrow/pull/776#issuecomment-2960502284
This one is I think actually a huge pain. One way is:
- Never build nanoarrow_testing as a shared library. This is actually sort
of hard with the way we've set up Meson.build because everything is all the way
shared or all the way static. In CMake we have nanoarrow_testing_static and
nanoarrow_static so that linking to nanoarrow_testing_static never triggers
NANOARROW_DLL to be expanded.
Another way is:
```cpp
class NANOARROW_DLL Difference {
Difference(); // set all three members to point to nullptr
virtual ~Difference(); // delete anything that's non null
// ... getters and setters that use strings
// data uses C types
char* actual;
char* expected;
char* difference;
```
--
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]