or.hpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #ifndef BOOST_MPL_OR_HPP_INCLUDED
  2. #define BOOST_MPL_OR_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2000-2004
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/mpl for documentation.
  10. // $Id$
  11. // $Date$
  12. // $Revision$
  13. #include <boost/mpl/aux_/config/use_preprocessed.hpp>
  14. #if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \
  15. && !defined(BOOST_MPL_PREPROCESSING_MODE)
  16. # include <boost/mpl/bool.hpp>
  17. # include <boost/mpl/aux_/nested_type_wknd.hpp>
  18. # include <boost/mpl/aux_/na_spec.hpp>
  19. # include <boost/mpl/aux_/lambda_support.hpp>
  20. # include <boost/mpl/aux_/config/msvc.hpp>
  21. // agurt, 19/may/04: workaround a conflict with <iso646.h> header's
  22. // 'or' and 'and' macros, see http://tinyurl.com/3et69; 'defined(or)'
  23. // has to be checked in a separate condition, otherwise GCC complains
  24. // about 'or' being an alternative token
  25. #if defined(_MSC_VER) && !defined(__clang__)
  26. #ifndef __GCCXML__
  27. #if defined(or)
  28. # pragma push_macro("or")
  29. # undef or
  30. # define or(x)
  31. #endif
  32. #endif
  33. #endif
  34. # define BOOST_MPL_PREPROCESSED_HEADER or.hpp
  35. # include <boost/mpl/aux_/include_preprocessed.hpp>
  36. #if defined(_MSC_VER) && !defined(__clang__)
  37. #ifndef __GCCXML__
  38. #if defined(or)
  39. # pragma pop_macro("or")
  40. #endif
  41. #endif
  42. #endif
  43. #else
  44. # define AUX778076_OP_NAME or_
  45. # define AUX778076_OP_VALUE1 true
  46. # define AUX778076_OP_VALUE2 false
  47. # include <boost/mpl/aux_/logical_op.hpp>
  48. #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
  49. #endif // BOOST_MPL_OR_HPP_INCLUDED