and.hpp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef BOOST_MPL_AND_HPP_INCLUDED
  2. #define BOOST_MPL_AND_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. // agurt, 19/may/04: workaround a conflict with <iso646.h> header's
  21. // 'or' and 'and' macros, see http://tinyurl.com/3et69; 'defined(and)'
  22. // has to be checked in a separate condition, otherwise GCC complains
  23. // about 'and' being an alternative token
  24. #if defined(_MSC_VER) && !defined(__clang__)
  25. #ifndef __GCCXML__
  26. #if defined(and)
  27. # pragma push_macro("and")
  28. # undef and
  29. # define and(x)
  30. #endif
  31. #endif
  32. #endif
  33. # define BOOST_MPL_PREPROCESSED_HEADER and.hpp
  34. # include <boost/mpl/aux_/include_preprocessed.hpp>
  35. #if defined(_MSC_VER) && !defined(__clang__)
  36. #ifndef __GCCXML__
  37. #if defined(and)
  38. # pragma pop_macro("and")
  39. #endif
  40. #endif
  41. #endif
  42. #else
  43. # define AUX778076_OP_NAME and_
  44. # define AUX778076_OP_VALUE1 false
  45. # define AUX778076_OP_VALUE2 true
  46. # include <boost/mpl/aux_/logical_op.hpp>
  47. #endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS
  48. #endif // BOOST_MPL_AND_HPP_INCLUDED