Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2007-10-04 05:00:31


I've run a tiny demo program using Jake Voytko's GSoC SVG plot code.

In debug (but NOT in release) I get lots of warnings like:

C:\Program Files\Microsoft Visual Studio 8\VC\include\xutility(2938) : warning C4172: returning address of local variable or
temporary

        I:\boost_1_34_1\boost/spirit/utility/impl/chset/range_run.ipp(70) : see reference to function template instantiation 'const
_Ty &std::max<CharT>(const _Ty &,const _Ty &)' being compiled
        with
        [
            _Ty=unsigned long,
            CharT=unsigned long
        ]

Can I safely disable these worrying sounding level 1 warnings?

Is this a bug or a (compiler) feature?

Paul

---
Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539561830 & SMS, Mobile +44 7714 330204 & SMS
pbristow_at_[hidden]
 

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