I am using flatbuffers - a serialization library. In the scheme I define a struct that I want to use with std::optional. but during compilation I get a warning C4324. What I understand flatbuffers use custom padding for generated structures. Is it safe to disable the warning?
The warning message is
warning C4324: 'std::_Optional_destruct_base<_Ty,true>::<unnamed-tag>': structure was padded due to alignment specifier
Visual Studio 2017, msvc 14.13.26128.