or.hpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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_EXTENSIONS)
  26. #if defined(or)
  27. # pragma push_macro("or")
  28. # undef or
  29. # define or(x)
  30. #endif
  31. #endif
  32. # define BOOST_MPL_PREPROCESSED_HEADER or.hpp
  33. # include <boost/mpl/aux_/include_preprocessed.hpp>
  34. #if defined(_MSC_EXTENSIONS)
  35. #if defined(or)
  36. # pragma pop_macro("or")
  37. #endif
  38. #endif
  39. #else
  40. # define AUX778076_OP_NAME or_
  41. # define AUX778076_OP_VALUE1 true
  42. # define AUX778076_OP_VALUE2 false
  43. # include <boost/mpl/aux_/logical_op.hpp>
  44. #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
  45. #endif // BOOST_MPL_OR_HPP_INCLUDED