Re: [Boost-bugs] [Boost C++ Libraries] #4874: multi_array compile errors using Visual C++ 2010 in debug mode

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4874: multi_array compile errors using Visual C++ 2010 in debug mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-11 19:47:56


#4874: multi_array compile errors using Visual C++ 2010 in debug mode
-------------------------------+--------------------------------------------
  Reporter: chrislu | Owner: garcia
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: multi_array
   Version: Boost 1.47.0 | Severity: Showstopper
Resolution: | Keywords: multi_array, Visual Studio 2010, Visual C++ 2010
-------------------------------+--------------------------------------------

Comment (by bill_buklis):

 I'm using the updated version from the trunk. This works fine. I attached
 a slightly modified version of the base.hpp file. You will need the rest
 of the files from trunk in addition to this file. The only modification is
 to check for the MSVC version. This way if you're not using MSVC it should
 act as normal.

 This is the updated section:

 {{{
 struct mutable_iterator_tag
  : boost::random_access_traversal_tag, std::input_iterator_tag
 {
 #if BOOST_WORKAROUND(BOOST_MSVC, <= 1700)
         operator std::output_iterator_tag() const
         {
                 return std::output_iterator_tag();
         }
 #endif
 };

 }}}

 The only thing I added was the BOOST_WORKAROUND if check.

 Note: I made the output_iterator_tag modification/addition valid for all
 Visual Studio versions up to and including the next version (VC11) as
 judging from the mailing list thread mentioned previously this bug may
 still be in there. I have not yet tried VC11, so I do not know if they
 have fixed it. Regardless, it shouldn't hurt anything.

 Thoughts? Comments?

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