[Boost-bugs] [Boost C++ Libraries] #4440: MSVC doesn't work with bounded_vector's of size 0

Subject: [Boost-bugs] [Boost C++ Libraries] #4440: MSVC doesn't work with bounded_vector's of size 0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-15 21:48:07


#4440: MSVC doesn't work with bounded_vector's of size 0
----------------------------------+-----------------------------------------
 Reporter: jesseperla@… | Owner: guwi17
     Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: uBLAS
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
----------------------------------+-----------------------------------------
 A bounded_vector<double, 0> will not compile in MSVC9/10. It works fine
 in Intel 11.1 windows and MinGW.

 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.

 See the attached patch to the boost trunk and a boost test file. This
 patch works on MSVC10, Intel 11.1 MinGW4.5

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4440>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:03 UTC