andishgar opened a new issue, #48339:
URL: https://github.com/apache/arrow/issues/48339

   ### Describe the enhancement requested
   
   Currently, the functions in `util/ubsan.h` require a type that is trivially 
copyable. However, before performing its intended operation, it calls the 
default constructor of the type, as shown in the code below:
   
[[link](https://github.com/apache/arrow/blob/b2e8f2505ba3eafe65a78ece6ae87fa7d0c1c133/cpp/src/arrow/util/ubsan.h#L56-L61)](https://github.com/apache/arrow/blob/b2e8f2505ba3eafe65a78ece6ae87fa7d0c1c133/cpp/src/arrow/util/ubsan.h#L56-L61)
   
   It is possible, however, for a type to be trivially copyable without having 
a default constructor, for example:
   
   ```c++
   struct A {
     A(int a) : a(a) {}
     int a;
   };
   ```
   
   ### Component(s)
   
   C++


-- 
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