Ticket #3968: ublas_storage.patch

File ublas_storage.patch, 999 bytes (added by anonymous, 13 years ago)
  • storage.hpp

     
    15981598        }
    15991599
    16001600        BOOST_UBLAS_INLINE
    1601         void swap(self_type rhs) {
     1601        void swap(self_type& rhs) {
    16021602            self_type tmp(rhs);
    16031603            rhs = *this;
    16041604            *this = tmp;
    16051605        }
    16061606        BOOST_UBLAS_INLINE
    1607         friend void swap(self_type lhs, self_type rhs) {
     1607        friend void swap(self_type& lhs, self_type& rhs) {
    16081608            lhs.swap(rhs);
    16091609        }
    16101610
     
    17701770        }
    17711771
    17721772        BOOST_UBLAS_INLINE
    1773         void swap(self_type rhs) {
     1773        void swap(self_type& rhs) {
    17741774            self_type tmp(rhs);
    17751775            rhs = *this;
    17761776            *this = tmp;
    17771777        }
    17781778        BOOST_UBLAS_INLINE
    1779         friend void swap(self_type lhs, self_type rhs) {
     1779        friend void swap(self_type& lhs, self_type& rhs) {
    17801780            lhs.swap(rhs);
    17811781        }
    17821782