Boost logo

Ublas :

From: Angus Leeming (angus.leeming_at_[hidden])
Date: 2005-08-05 04:58:25


I need to make the following, trivial fix to squash a warning when
compiling with "gcc -W -Wall". This is with today's CVS.

Regards,
Angus

matrix.hpp:2731: warning: unused parameter 'i'
matrix.hpp:2731: warning: unused parameter 'j'

    template<class T>
    class scalar_matrix: public matrix_container<scalar_matrix<T> > {
    public:
        typedef std::size_t size_type;
        typedef const T &const_reference;

        // Element access
        BOOST_UBLAS_INLINE
- const_reference operator () (size_type i, size_type j) const {
+ const_reference operator () (size_type /*i*/, size_type /*j*/)
const {
            return value_;
        }

    private:
        value_type value_;
    };