Data not aligned correctly in Visual Studio if run in debugger
问题 I've been working with SSE for a while now, and I've seen my share of alignment issues. This, however, is beyond my understanding: I get different alignment whether I run the program using F5 (debug) or whether I run it outside the debugger (Ctrl+F5)! Some background info: I'm using a wrapper for a SSE-enabled datatype - with overloaded operators and custom allocator (overloaded new and delete operators using _mm_malloc and _mm_free ). But in the example below, I've managed to reduce to