I'm trying to use the Vector class and within my application, the elements must be aligned on a 16 bytes boundary. (They are being accesses by SSE2 instructions.)
Looking at the code, the Vector template appears to call a global routine that calls "new" for a "byte" element. I would like to avoid rewriting or modifying the standard Vector class.
I am trying to figure out the best way to overwrite the memory allocation routines for the Vector class such that the "vector" was aligned.
In my old (stupid?) view, I would have thought that Vector should have used a "new" based on the type of object. Another approach might have been to add a template argument to Vector that would specify alignment (defaulting to .
I'm quite new to Ultimate++ and and still trying to break my MFC orientation. Any push in the right direction would be appreciated.