1 // Copyright John Maddock 2008
\r
2 // Use, modification, and distribution is subject to the Boost Software
\r
3 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
\r
4 // http://www.boost.org/LICENSE_1_0.txt)
\r
6 // This file exists to turn off some overly-pedantic warning emitted
\r
7 // by certain compilers. You should include this header only in:
\r
9 // * A test case, before any other headers, or,
\r
10 // * A library source file before any other headers.
\r
12 // IT SHOULD NOT BE INCLUDED BY ANY BOOST HEADER.
\r
14 // YOU SHOULD NOT INCLUDE IT IF YOU CAN REASONABLY FIX THE WARNING.
\r
16 // The only warnings disabled here are those that are:
\r
18 // * Quite unreasonably pedantic.
\r
19 // * Generally only emitted by a single compiler.
\r
20 // * Can't easily be fixed: for example if the vendors own std lib
\r
21 // code emits these warnings!
\r
23 // Note that THIS HEADER MUST NOT INCLUDE ANY OTHER HEADERS:
\r
24 // not even std library ones! Doing so may turn the warning
\r
25 // off too late to be of any use. For example the VC++ C4996
\r
26 // warning can be omitted from <iosfwd> if that header is included
\r
27 // before or by this one :-(
\r
30 #ifndef BOOST_CONFIG_WARNING_DISABLE_HPP
\r
31 #define BOOST_CONFIG_WARNING_DISABLE_HPP
\r
33 #if defined(_MSC_VER) && (_MSC_VER >= 1400)
\r
34 // Error 'function': was declared deprecated
\r
35 // http://msdn2.microsoft.com/en-us/library/ttcz0bys(VS.80).aspx
\r
36 // This error is emitted when you use some perfectly conforming
\r
37 // std lib functions in a perfectly correct way, and also by
\r
38 // some of Microsoft's own std lib code !
\r
39 # pragma warning(disable:4996)
\r
41 #if defined(__INTEL_COMPILER) || defined(__ICL)
\r
42 // As above: gives warning when a "deprecated"
\r
43 // std library function is encountered.
\r
44 # pragma warning(disable:1786)
\r
47 #endif // BOOST_CONFIG_WARNING_DISABLE_HPP
\r