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

rest of code ....

# pragma warning(pop)

#endif // BOOST_UNITS


Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539561830 & SMS, Mobile +44 7714 330204 & SMS
>-----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, gregod at, cpdaniel at, john at