diff -Naur boost/numeric/ublas.orig/functional.hpp boost/numeric/ublas.new/functional.hpp
old
|
new
|
|
1730 | 1730 | // FIXME: this should not be used at all |
1731 | 1731 | static |
1732 | 1732 | BOOST_UBLAS_INLINE |
1733 | | size_type restrict1 (size_type i, size_type j) { |
| 1733 | size_type restrict1 (size_type i, size_type /* j */) { |
1734 | 1734 | return i; |
1735 | 1735 | } |
1736 | 1736 | static |
1737 | 1737 | BOOST_UBLAS_INLINE |
1738 | | size_type restrict2 (size_type i, size_type j) { |
| 1738 | size_type restrict2 (size_type /* i */, size_type j) { |
1739 | 1739 | return j; |
1740 | 1740 | } |
1741 | 1741 | static |
1742 | 1742 | BOOST_UBLAS_INLINE |
1743 | | size_type mutable_restrict1 (size_type i, size_type j) { |
| 1743 | size_type mutable_restrict1 (size_type i, size_type /* j */) { |
1744 | 1744 | return i; |
1745 | 1745 | } |
1746 | 1746 | static |
1747 | 1747 | BOOST_UBLAS_INLINE |
1748 | | size_type mutable_restrict2 (size_type i, size_type j) { |
| 1748 | size_type mutable_restrict2 (size_type /* i */, size_type j) { |
1749 | 1749 | return j; |
1750 | 1750 | } |
1751 | 1751 | }; |
… |
… |
|
1780 | 1780 | template<class LAYOUT> |
1781 | 1781 | static |
1782 | 1782 | BOOST_UBLAS_INLINE |
1783 | | size_type element (LAYOUT l, size_type i, size_type size_i, size_type j, size_type size_j) { |
| 1783 | size_type element (LAYOUT /* l */, size_type i, size_type size_i, size_type j, size_type size_j) { |
| 1784 | //detail::ignore_unused_variable_warning( l ); |
| 1785 | |
1784 | 1786 | return L::element(typename LAYOUT::transposed_layout(), j, size_j, i, size_i); |
1785 | 1787 | } |
1786 | 1788 | |
… |
… |
|
1877 | 1879 | // return nearest valid mutable index in column j |
1878 | 1880 | static |
1879 | 1881 | BOOST_UBLAS_INLINE |
1880 | | size_type mutable_restrict1 (size_type i, size_type j, size_type size1, size_type size2) { |
| 1882 | size_type mutable_restrict1 (size_type i, size_type j, size_type size1, size_type /* size2 */) { |
| 1883 | //detail::ignore_unused_variable_warning( size2 ); |
| 1884 | |
1881 | 1885 | return (std::max)(j, (std::min) (size1, i)); |
1882 | 1886 | } |
1883 | 1887 | // return nearest valid mutable index in row i |
… |
… |
|
1890 | 1894 | // return an index between the first and (1+last) filled row |
1891 | 1895 | static |
1892 | 1896 | BOOST_UBLAS_INLINE |
1893 | | size_type global_restrict1 (size_type index1, size_type size1, size_type index2, size_type size2) { |
| 1897 | size_type global_restrict1 (size_type index1, size_type size1, size_type /* index2 */, size_type /* size2 */) { |
1894 | 1898 | return (std::max)(size_type(0), (std::min)(size1, index1) ); |
1895 | 1899 | } |
1896 | 1900 | // return an index between the first and (1+last) filled column |
1897 | 1901 | static |
1898 | 1902 | BOOST_UBLAS_INLINE |
1899 | | size_type global_restrict2 (size_type index1, size_type size1, size_type index2, size_type size2) { |
| 1903 | size_type global_restrict2 (size_type /* index1 */, size_type /* size1 */, size_type index2, size_type size2) { |
1900 | 1904 | return (std::max)(size_type(0), (std::min)(size2, index2) ); |
1901 | 1905 | } |
1902 | 1906 | |
1903 | 1907 | // return an index between the first and (1+last) filled mutable row |
1904 | 1908 | static |
1905 | 1909 | BOOST_UBLAS_INLINE |
1906 | | size_type global_mutable_restrict1 (size_type index1, size_type size1, size_type index2, size_type size2) { |
| 1910 | size_type global_mutable_restrict1 (size_type index1, size_type size1, size_type /* index2 */, size_type /* size2 */) { |
| 1911 | //detail::ignore_unused_variable_warning( index2 ); |
| 1912 | //detail::ignore_unused_variable_warning( size2 ); |
| 1913 | |
1907 | 1914 | return (std::max)(size_type(0), (std::min)(size1, index1) ); |
1908 | 1915 | } |
1909 | 1916 | // return an index between the first and (1+last) filled mutable column |
1910 | 1917 | static |
1911 | 1918 | BOOST_UBLAS_INLINE |
1912 | | size_type global_mutable_restrict2 (size_type index1, size_type size1, size_type index2, size_type size2) { |
| 1919 | size_type global_mutable_restrict2 (size_type /* index1 */, size_type /* size1 */, size_type index2, size_type size2) { |
| 1920 | //detail::ignore_unused_variable_warning( index1 ); |
| 1921 | //detail::ignore_unused_variable_warning( size1 ); |
| 1922 | |
1913 | 1923 | return (std::max)(size_type(0), (std::min)(size2, index2) ); |
1914 | 1924 | } |
1915 | 1925 | }; |
… |
… |
|
1950 | 1960 | |
1951 | 1961 | static |
1952 | 1962 | BOOST_UBLAS_INLINE |
1953 | | size_type mutable_restrict1 (size_type i, size_type j, size_type size1, size_type size2) { |
| 1963 | size_type mutable_restrict1 (size_type i, size_type j, size_type size1, size_type /* size2 */) { |
1954 | 1964 | return (std::max)(j+1, (std::min) (size1, i)); |
1955 | 1965 | } |
1956 | 1966 | static |
1957 | 1967 | BOOST_UBLAS_INLINE |
1958 | | size_type mutable_restrict2 (size_type i, size_type j, size_type size1, size_type size2) { |
| 1968 | size_type mutable_restrict2 (size_type i, size_type j, size_type /* size1 */, size_type /* size2 */) { |
1959 | 1969 | return (std::max)(size_type(0), (std::min) (i, j)); |
1960 | 1970 | } |
1961 | 1971 | |
1962 | 1972 | // return an index between the first and (1+last) filled mutable row |
1963 | 1973 | static |
1964 | 1974 | BOOST_UBLAS_INLINE |
1965 | | size_type global_mutable_restrict1 (size_type index1, size_type size1, size_type index2, size_type size2) { |
| 1975 | size_type global_mutable_restrict1 (size_type index1, size_type size1, size_type /* index2 */, size_type /* size2 */) { |
1966 | 1976 | return (std::max)(size_type(1), (std::min)(size1, index1) ); |
1967 | 1977 | } |
1968 | 1978 | // return an index between the first and (1+last) filled mutable column |
1969 | 1979 | static |
1970 | 1980 | BOOST_UBLAS_INLINE |
1971 | | size_type global_mutable_restrict2 (size_type index1, size_type size1, size_type index2, size_type size2) { |
| 1981 | size_type global_mutable_restrict2 (size_type /* index1 */, size_type /* size1 */, size_type index2, size_type size2) { |
1972 | 1982 | BOOST_UBLAS_CHECK( size2 >= 1 , external_logic() ); |
1973 | 1983 | return (std::max)(size_type(0), (std::min)(size2-1, index2) ); |
1974 | 1984 | } |