[C++-sig] [patch] Unused variable warnings.

Giulio Eulisse giulio.eulisse at cern.ch
Wed Apr 9 12:13:30 CEST 2003


> Just my two cents, but it would maybe have been better if you had used the
> 'ignore_unused_variable_warning' function, which is defined in
> 'concept_check.hpp' - or maybe something similar already in use for
> boost.python (anyone?)

Didn't know about the existance of such a function, sorry.  

> Moreover, I may be wrong but, the common (standard?) way of preventing such
> warnings is to remove the unused parameter name - so the, for instance, the
> function
> 
>   inline void register_class_to_python(mpl::true_ copyable, SelectHolder
> selector, T* = 0)
> 
> would become
> 
>   inline void register_class_to_python(mpl::true_ /*copyable*/, SelectHolder
> /*selector*/, T* = 0)

Didn't know about that as well, sorry again.

-- 
Giulio Eulisse
Northeastern University, Boston, MA (USA)
CERN, Geneve, GE (CH)
Office: 40-3-A15
Office phone:76 71692 Cellphone:(+39) 3356972726
Homepage: http://home.cern.ch/eulisse/





More information about the Cplusplus-sig mailing list