
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Tobias Schwinger Sent: 08 August 2007 11:14 To: boost@lists.boost.org Subject: Re: [boost] BOOST_MSVC versus _MSC_VER
Paul A Bristow wrote:
Is there still a reason why we need to use BOOST_MSVC? (rather than always using _MSC_VER?)
Yes: Some compilers (e.g. Intel/Win32) pretend to be MSVC by defining _MSC_VER. Boost.Config defines BOOST_MSVC for the real MSVC only.
I thought as much... But if we are suppressing unwanted warnings, do the pretender MSVCs behave in exactly the same way and all need the same treatment suppressing unwanted warnings? If this is really true, we need a way of ensuring that BOOST_MSVC is *always defined*, perhaps by calling boost config - though this seems a bit OTT? Paul --- Paul A Bristow Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB +44 1539561830 & SMS, Mobile +44 7714 330204 & SMS pbristow@hetp.u-net.com