Containers for sony vector math's structures.
Posted: Mon Oct 01, 2012 6:31 pm
I'm trying to use the SSE version of the vector math library in the Extras folder. Because of the 16byte alignment of its structures, however, I can't seem to use stl vector's to store them. This error comes up:
This is a pretty major hurdle, and I was wondering if any of you knew a fix, or a different container library providing vectors. Do people generally roll their own containers for these?1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\vector(870): error C2719: '_Val': formal parameter with __declspec(align('16')) won't be aligned
1> c:\...\projects\sonymath\sonymath\main.cpp(16) : see reference to class template instantiation 'std::vector<_Ty>' being compiled
1> with
1> [
1> _Ty=Vectormath::Aos::Vector3
1> ]
1>