Boost logo

Boost :

Subject: [boost] BOOST_MSVC vs. _MSC_VER wrt #pragma warning
From: Emil Dotchevski (emil_at_[hidden])
Date: 2009-11-30 18:55:01


I understand that BOOST_MSVC is needed to detect MSVC because other
compilers besides MSVC define _MSC_VER.

But what about #ifdefing #pragma warning, should it use _MSC_VER or
BOOST_MSVC? The reason why the ifdefing is needed is to prevent GCC
and other compilers issuing a warning about #pragma warning, but
presumably compilers that have _MSC_VER defined wouldn't warn about
that, would they?

-- 
Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode

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