mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
763949351f
Using alignment on basic types when vtkm only targetted Linux/BSD/OSX was 'okay' because of how the alignment operators worked, but potential was going to cause issues in the long run if we failed to detect the correct size and the compiler was than forced to not use intrinsics. Now with adding windows support we have run into another problem. Basically using an alignment operator on a typedef means that the type must never be passed by value, but must always be passed by reference. The reason for this is that passing by value doesn't respect alignment requirements, and can cause very subtle errors or crashes. A really good read for people more interested in these problems: http://eigen.tuxfamily.org/dox/group__TopicPassingByValue.html http://eigen.tuxfamily.org/dox-devel/group__DenseMatrixManipulation__Alignement.html |
||
---|---|---|
.. | ||
cont | ||
exec/internal | ||
internal | ||
testing | ||
CMakeLists.txt | ||
Types.h | ||
TypeTraits.h | ||
VectorTraits.h |