Opened 8 years ago
Closed 8 years ago
#10763 closed Bugs (fixed)
Visual Studio 2008 incorrectly enables BOOST_HAS_PRAGMA_DETECT_MISMATCH
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | config |
Version: | Boost 1.57.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The configuration file
boost/config/compiler/visualc.hpp
incorrectly enables support for pragma detect_mismatch for Visual Studio 2008 as of the lines 107-109:
#if _MSC_VER >= 1500 // 150X == VC++ 9.0 # define BOOST_HAS_PRAGMA_DETECT_MISMATCH #endif
This has the effect that compliation against MSVC++ 9.0 leads to a series of warnings such as:
boost/type_index.hpp(37) : warning C4068: unknown pragma
According to my experience - and covered by the information provided here [The following should be interpreted as an URL]:
http boost.2283326.n4.nabble.com Boost-and-Microsoft-s-SECURE-SCL-td3025203.html
the new pragma exists since Visual Studio 2010 (_MSC_VER == 1600)
Note:
See TracTickets
for help on using tickets.
Nod.
This was fixe din https://github.com/boostorg/config/pull/43