config_begin.hpp 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2005-2013. Distributed under the Boost
  4. // Software License, Version 1.0. (See accompanying file
  5. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // See http://www.boost.org/libs/container for documentation.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #ifndef BOOST_CONTAINER_CONTAINER_DETAIL_CONFIG_INCLUDED
  11. #define BOOST_CONTAINER_CONTAINER_DETAIL_CONFIG_INCLUDED
  12. #ifndef BOOST_CONFIG_HPP
  13. #include <boost/config.hpp>
  14. #endif
  15. #endif //BOOST_CONTAINER_CONTAINER_DETAIL_CONFIG_INCLUDED
  16. #ifdef BOOST_MSVC
  17. #pragma warning (push)
  18. #pragma warning (disable : 4619) // there is no warning number 'XXXX'
  19. #pragma warning (disable : 4127) // conditional expression is constant
  20. #pragma warning (disable : 4146) // unary minus operator applied to unsigned type, result still unsigned
  21. #pragma warning (disable : 4197) // top-level volatile in cast is ignored
  22. #pragma warning (disable : 4251) // "identifier" : class "type" needs to have dll-interface to be used by clients of class "type2"
  23. #pragma warning (disable : 4275) // non DLL-interface classkey "identifier" used as base for DLL-interface classkey "identifier"
  24. #pragma warning (disable : 4284) // odd return type for operator->
  25. #pragma warning (disable : 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
  26. #pragma warning (disable : 4324) // structure was padded due to __declspec(align(
  27. #pragma warning (disable : 4345) // behavior change: an object of POD type constructed with an initializer of the form () will be default-initialized
  28. #pragma warning (disable : 4355) // "this" : used in base member initializer list
  29. #pragma warning (disable : 4503) // "identifier" : decorated name length exceeded, name was truncated
  30. #pragma warning (disable : 4510) // default constructor could not be generated
  31. #pragma warning (disable : 4511) // copy constructor could not be generated
  32. #pragma warning (disable : 4512) // assignment operator could not be generated
  33. #pragma warning (disable : 4514) // unreferenced inline removed
  34. #pragma warning (disable : 4521) // Disable "multiple copy constructors specified"
  35. #pragma warning (disable : 4522) // "class" : multiple assignment operators specified
  36. #pragma warning (disable : 4541) // 'typeid' used on polymorphic type '' with /GR-; unpredictable behavior may result
  37. #pragma warning (disable : 4584) // X is already a base-class of Y
  38. #pragma warning (disable : 4610) // struct can never be instantiated - user defined constructor required
  39. #pragma warning (disable : 4671) // the copy constructor is inaccessible
  40. #pragma warning (disable : 4673) // throwing '' the following types will not be considered at the catch site
  41. #pragma warning (disable : 4675) // "method" should be declared "static" and have exactly one parameter
  42. #pragma warning (disable : 4706) // assignment within conditional expression
  43. #pragma warning (disable : 4710) // function not inlined
  44. #pragma warning (disable : 4714) // "function": marked as __forceinline not inlined
  45. #pragma warning (disable : 4711) // function selected for automatic inline expansion
  46. #pragma warning (disable : 4786) // identifier truncated in debug info
  47. #pragma warning (disable : 4996) // "function": was declared deprecated
  48. #endif //BOOST_MSVC
  49. #if defined(BOOST_GCC) && (BOOST_GCC >= 40600)
  50. #pragma GCC diagnostic push
  51. //Sign conversion warnings broken before GCC 9.3
  52. //(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519)
  53. #if BOOST_GCC < 90300
  54. #pragma GCC diagnostic ignored "-Wsign-conversion"
  55. #endif
  56. #endif