Boost logo

Boost :

Subject: [boost] [concept_check] silence gcc warnings
From: Jürgen Hunold (juergen.hunold_at_[hidden])
Date: 2010-03-31 05:41:00


Hi !

I've started to use Boost.Accumulators and I'm getting tons of ugly warnings
when compiling with optimization on. See full "warn.log" for details,
This boils down to boost/concept_check.hpp

335: warning: non-static reference ‘const float&
boost::UnaryFunction<boost::numeric::functional::as_max<const float, void>,
float, const float&>::arg’ in class without a constructor [-Wuninitialized]

when the check ist called with a reference parameter.
It seems that providing a dummy constructor is sufficient to silence this.
Please find a patch attached.

Okay to commit ?

Or are the better ideas ?

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !





Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk