Ticket #7337: sparse_view-201209061016.patch

File sparse_view-201209061016.patch, 844 bytes (added by Marco Guazzone <marco.guazzone@…>, 10 years ago)

Patch to fix the copy-constructor of compressed_matrix_view.

  • boost/numeric/ublas/experimental/sparse_view.hpp

    diff -Naur /old/boost/numeric/ublas/experimental/sparse_view.hpp /new/boost/numeric/ublas/experimental/sparse_view.hpp
    old new  
    190190
    191191        BOOST_UBLAS_INLINE
    192192        compressed_matrix_view(const compressed_matrix_view& o) :
    193             size1_(size1_), size2_(size2_),
    194             nnz_(nnz_),
    195             index1_data_(index1_data_),
    196             index2_data_(index2_data_),
    197             value_data_(value_data_)
     193            size1_(o.size1_), size2_(o.size2_),
     194            nnz_(o.nnz_),
     195            index1_data_(o.index1_data_),
     196            index2_data_(o.index2_data_),
     197            value_data_(o.value_data_)
    198198        {}
    199199
    200200        //