Re: [Boost-bugs] [Boost C++ Libraries] #4539: multi_array patch for VisualStudio 2010

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4539: multi_array patch for VisualStudio 2010
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-08 14:08:42


#4539: multi_array patch for VisualStudio 2010
-----------------------------------------------+----------------------------
  Reporter: Serg Repalov <repalov@…> | Owner: garcia
      Type: Bugs | Status: closed
 Milestone: Boost 1.44.0 | Component: multi_array
   Version: Boost 1.44.0 | Severity: Problem
Resolution: invalid | Keywords: multi_array, 2010
-----------------------------------------------+----------------------------

Comment (by mpolder):

 I've been using boost::multi_array for a few years now. I just upgraded to
 1_46_1 and MSVC++ 2010 within the past few weeks. I ran into the problem
 described here. I implemented the changes shown in
 _multi_array_vc10_ver3.patch and got a clean compile, but then it was
 crashing while debugging. After reviewing the two links above on the
 Microsoft sites, I made the following changes to the MSVC++ include file
 yvals.h (C:\Program Files\Microsoft Visual Studio
 10.0\VC\include\yvals.h):


 {{{
 156 #ifdef _DEBUG
 +++ #ifndef BOOST_MULTI_ARRAY_WORKAROUND
 157 #define _HAS_ITERATOR_DEBUGGING 1
 +++ #endif
 158 #else
 }}}

 I then defined this macro for the debug builds for all my libraries and
 executables that use multi_array. Effectively I'm turning off iterator
 debugging, which is a nice feature for capturing bugs, but if I don't turn
 it off I either can't use multi_array or use MSVC for debugging.

 I've only done limited testing so far by running an executable in both
 release and debug mode and comparing the output, but so far so good.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4539#comment:7>
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:07 UTC