3 ms·
With gcc, the option -Wcast-align=strict is useful. Edit: And if the buffer to convert is very large, one could first check the alignment of the pointer (with
by tralarpa 3y ago
With gcc, the option -Wcast-align=strict is useful.
Edit:
And if the buffer to convert is very large, one could first check the alignment of the pointer (with alignof(T)) in C++