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: 2011-06-07 13:14:28
#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 r.undheim@â¦):
You could try to path code with problem (in view.hpp) to something like:
{{{
multi_array_view& operator=(const multi_array_view& other) {
if (&other != this) {
// make sure the dimensions agree
BOOST_ASSERT(other.num_dimensions() == this->num_dimensions());
BOOST_ASSERT(std::equal(other.shape(),
other.shape()+this->num_dimensions(),
this->shape()));
#if _MSC_VER >= 1600
auto
iterThis = begin();
auto
iterOther = other.begin();
for (; iterThis != end(); ++iterThis, ++iterOther)
*iterThis = *iterOther;
#else
// iterator-based copy
std::copy(other.begin(),other.end(),begin());
#endif
}
return *this;
}
}}}
Just to get the code through compiler, and wait for a proper fix later.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4874#comment:6> 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:06 UTC