Boost C++ Libraries: Ticket #4440: MSVC doesn't work with bounded_vector's of size 0 https://svn.boost.org/trac10/ticket/4440 <p> A bounded_vector&lt;double, 0&gt; will not compile in MSVC9/10. It works fine in Intel 11.1 windows and MinGW. </p> <p> In my generic programming, this comes up quite often. I added in a temporary hatch that changes the size of the allocated array to 1 if using MSVC. This doesn't seem to have caused any issues, but I don't know enough about alignment issues to see if it is a problem. </p> <p> See the attached patch to the boost trunk and a boost test file. This patch works on MSVC10, Intel 11.1 MinGW4.5 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4440 Trac 1.4.3 jesseperla@… Thu, 15 Jul 2010 21:48:46 GMT attachment set https://svn.boost.org/trac10/ticket/4440 https://svn.boost.org/trac10/ticket/4440 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_boost_ublas_size_0.cpp</span> </li> </ul> Ticket jesseperla@… Thu, 15 Jul 2010 21:49:09 GMT attachment set https://svn.boost.org/trac10/ticket/4440 https://svn.boost.org/trac10/ticket/4440 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">size_0_vector_msvc.patch</span> </li> </ul> Ticket