MSVC std::vector and aligned data
Members - Reputation: 1202
Posted 05 November 2011 - 08:56 AM
As you can see by the first link, this wll be fixed in VC11.
Thanks for reporting this bug. We've fixed it, and the fix will be available in VC11.
Amusingly, when this was originally reported in July 2006 (months before I joined the VC team), this was indeed By Design. C++03 220.127.116.11 [lib.vector.capacity]/6 specified:
void resize(size_type sz, T c = T());
Now, C++11 18.104.22.168 [vector.capacity]/9, 11 specifies:
void resize(size_type sz);
void resize(size_type sz, const T& c);
This change was introduced in March 2008's Working Paper N2588.
If you have any further questions, feel free to E-mail me at email@example.com .
Stephan T. Lavavej
Visual C++ Libraries Developer