MSVC std::vector and aligned data
Members - Reputation: 1654
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 188.8.131.52 [lib.vector.capacity]/6 specified:
void resize(size_type sz, T c = T());
Now, C++11 184.108.40.206 [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