Ticket #3968: ublas_storage.patch
File ublas_storage.patch, 999 bytes (added by , 13 years ago) |
---|
-
storage.hpp
1598 1598 } 1599 1599 1600 1600 BOOST_UBLAS_INLINE 1601 void swap(self_type rhs) {1601 void swap(self_type& rhs) { 1602 1602 self_type tmp(rhs); 1603 1603 rhs = *this; 1604 1604 *this = tmp; 1605 1605 } 1606 1606 BOOST_UBLAS_INLINE 1607 friend void swap(self_type lhs, self_typerhs) {1607 friend void swap(self_type& lhs, self_type& rhs) { 1608 1608 lhs.swap(rhs); 1609 1609 } 1610 1610 … … 1770 1770 } 1771 1771 1772 1772 BOOST_UBLAS_INLINE 1773 void swap(self_type rhs) {1773 void swap(self_type& rhs) { 1774 1774 self_type tmp(rhs); 1775 1775 rhs = *this; 1776 1776 *this = tmp; 1777 1777 } 1778 1778 BOOST_UBLAS_INLINE 1779 friend void swap(self_type lhs, self_typerhs) {1779 friend void swap(self_type& lhs, self_type& rhs) { 1780 1780 lhs.swap(rhs); 1781 1781 } 1782 1782