
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@hetp.u-net.com
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Steven Watanabe Sent: 12 February 2007 21:21 To: boost@lists.boost.org Subject: [boost] [units] warnings under msvc