BVB Source Codes

mars Show warning_disable.hpp Source code

Return Download mars: download warning_disable.hpp Source code - Download mars Source code - Type:.hpp
  1. //  Copyright John Maddock 2008
  2. //  Use, modification, and distribution is subject to the Boost Software
  3. //  License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. //  http://www.boost.org/LICENSE_1_0.txt)
  5. //
  6. //  This file exists to turn off some overly-pedantic warning emitted
  7. //  by certain compilers.  You should include this header only in:
  8. //
  9. //  * A test case, before any other headers, or,
  10. //  * A library source file before any other headers.
  11. //
  12. //  IT SHOULD NOT BE INCLUDED BY ANY BOOST HEADER.
  13. //
  14. //  YOU SHOULD NOT INCLUDE IT IF YOU CAN REASONABLY FIX THE WARNING.
  15. //
  16. //  The only warnings disabled here are those that are:
  17. //
  18. //  * Quite unreasonably pedantic.
  19. //  * Generally only emitted by a single compiler.
  20. //  * Can't easily be fixed: for example if the vendors own std lib
  21. //    code emits these warnings!
  22. //
  23. //  Note that THIS HEADER MUST NOT INCLUDE ANY OTHER HEADERS:
  24. //  not even std library ones!  Doing so may turn the warning
  25. //  off too late to be of any use.  For example the VC++ C4996
  26. //  warning can be emitted from <iosfwd> if that header is included
  27. //  before or by this one :-(
  28. //
  29.  
  30. #ifndef BOOST_CONFIG_WARNING_DISABLE_HPP
  31. #define BOOST_CONFIG_WARNING_DISABLE_HPP
  32.  
  33. #if defined(_MSC_VER) && (_MSC_VER >= 1400)
  34.    // Error 'function': was declared deprecated
  35.    // http://msdn2.microsoft.com/en-us/library/ttcz0bys(VS.80).aspx
  36.    // This error is emitted when you use some perfectly conforming
  37.    // std lib functions in a perfectly correct way, and also by
  38.    // some of Microsoft's own std lib code !
  39. #  pragma warning(disable:4996)
  40. #endif
  41. #if defined(__INTEL_COMPILER) || defined(__ICL)
  42.    // As above: gives warning when a "deprecated"
  43.    // std library function is encountered.
  44. #  pragma warning(disable:1786)
  45. #endif
  46.  
  47. #endif // BOOST_CONFIG_WARNING_DISABLE_HPP
  48.  
downloadwarning_disable.hpp Source code - Download mars Source code
Related Source Codes/Software:
Hero - Elegant transition library for iOS & tvOS 2017-06-09
deep-photo-styletransfer - Code and data for paper "Deep Photo Style Transfer... 2017-06-09
mastodon - A GNU Social-compatible microblogging server ... 2017-06-09
plyr - A simple HTML5, YouTube and Vimeo player ... 2017-06-08
prepack - Prepack is a partial evaluator for JavaScript. Pre... 2017-06-08
Public-APIs - 2017-06-09
lottie-ios - An iOS library to natively render After Effects ve... 2017-06-09
Awesome-Hacking - A collection of various awesome lists for hackers,... 2017-06-09
algorithms - Minimal examples of data structures and algorithms... 2017-06-10
lectures - Oxford Deep NLP 2017 course 2017-06-10
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top