Boost C++ Libraries: Ticket #10763: Visual Studio 2008 incorrectly enables BOOST_HAS_PRAGMA_DETECT_MISMATCH https://svn.boost.org/trac10/ticket/10763 <p> The configuration file </p> <p> boost/config/compiler/visualc.hpp </p> <p> incorrectly enables support for pragma detect_mismatch for Visual Studio 2008 as of the lines 107-109: </p> <pre class="wiki">#if _MSC_VER &gt;= 1500 // 150X == VC++ 9.0 # define BOOST_HAS_PRAGMA_DETECT_MISMATCH #endif </pre><p> This has the effect that compliation against MSVC++ 9.0 leads to a series of warnings such as: </p> <pre class="wiki">boost/type_index.hpp(37) : warning C4068: unknown pragma </pre><p> According to my experience - and covered by the information provided here [The following should be interpreted as an URL]: </p> <p> http boost.2283326.n4.nabble.com Boost-and-Microsoft-s-SECURE-SCL-td3025203.html </p> <p> the new pragma exists since Visual Studio 2010 (_MSC_VER == 1600) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10763 Trac 1.4.3 John Maddock Mon, 10 Nov 2014 17:34:52 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10763#comment:1 https://svn.boost.org/trac10/ticket/10763#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Nod. </p> <p> This was fixe din <a class="ext-link" href="https://github.com/boostorg/config/pull/43"><span class="icon">​</span>https://github.com/boostorg/config/pull/43</a> </p> Ticket