Boost logo

Ublas :

Subject: [ublas] [bindings] Suppress "unused variable" warnings
From: Marco Guazzone (marco.guazzone_at_[hidden])
Date: 2010-07-06 13:59:52


Hi,

Line 75 of file "boost/numeric/bindings/detail/get.hpp"

--- [code] ---
    static result_type invoke( const T& t ) {
        return result_type();
    }
--- [/code] ---

generate annoying "unusable variable" warnings.

Is it possible to comment the variable name?
For instance:
--- [code] ---
    static result_type invoke( const T& /*t*/ ) {
        return result_type();
    }
--- [/code] ---

This would save me from walking back several lines before I find real
errors... Yes, I'm lazy :P

Thank you very much!!

Cheers,

-- Marco