For example: cast from 'value_type ' (aka 'unsigned char ') to 'const Int16 '
(aka 'const short ') increases required alignment from 1 to 2
[-Wcast-align]
The use of the “reinterpret_cast” function fixes that.
I added the flag -Wcast-align, because I wanted to remove the C casting methods from the project Biomechanical-ToolKit and replace them by the adapted C++ code.
...rease alignment.
For example: cast from 'value_type ' (aka 'unsigned char ') to 'const Int16 ' (aka 'const short ') increases required alignment from 1 to 2 [-Wcast-align]
The use of the “reinterpret_cast” function fixes that.
I added the flag -Wcast-align, because I wanted to remove the C casting methods from the project Biomechanical-ToolKit and replace them by the adapted C++ code.