Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2007-02-13 05:09:53


>From experience producing code that compiles cleanly MSVC 8.0 at level 4,

may I suggest that none of these are helpful warnings and should be suppressed:

After the boost includes (to make sure BOOST_MSVC is defined).

#if defined (BOOST_MSVC)
# pragma warning(push)
# pragma warning(disable: 4127) // conditional expression is constant
# pragma warning(disable: 4100) // unreferenced formal parameter
// or comment out the parameter thus /* unused_one */
# pragma warning(disable: 4512) // assignment operator could not be generated
#endif

rest of code ....

#ifdef BOOST_MSVC
# pragma warning(pop)
#endif

#endif // BOOST_UNITS

Paul

---
Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539561830 & SMS, Mobile +44 7714 330204 & SMS
pbristow_at_[hidden]
>-----Original Message-----
>From: boost-bounces_at_[hidden] 
>[mailto:boost-bounces_at_[hidden]] On Behalf Of Steven Watanabe
>Sent: 12 February 2007 21:21
>To: boost_at_[hidden]
>Subject: [boost] [units] warnings under msvc

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