Ticket #7896: storage.hpp.patch

File storage.hpp.patch, 660 bytes (added by lukeocamden@…, 10 years ago)

Proposed fix would be something like this

  • boost/numeric/ublas/storage.hpp

     
    201201        unbounded_array &operator = (const unbounded_array &a) {
    202202            if (this != &a) {
    203203                resize (a.size_);
     204#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1600))
     205                auto src = a.data_;
     206                auto dest = data_;
     207                while (src != a.data_ + a.size_)
     208                  *dest++ = *src++;
     209#else
    204210                std::copy (a.data_, a.data_ + a.size_, data_);
     211#endif
    205212            }
    206213            return *this;
    207214        }