bitor.hpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef BOOST_MPL_BITOR_HPP_INCLUDED
  2. #define BOOST_MPL_BITOR_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2000-2009
  4. // Copyright Jaap Suter 2003
  5. //
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // (See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. // See http://www.boost.org/libs/mpl for documentation.
  11. // $Id$
  12. // $Date$
  13. // $Revision$
  14. // agurt, 23/jan/10: workaround a conflict with <iso646.h> header's
  15. // macros, see http://tinyurl.com/ycwdxco; 'defined(bitor)'
  16. // has to be checked in a separate condition, otherwise GCC complains
  17. // about 'bitor' being an alternative token
  18. #if defined(_MSC_VER) && !defined(__clang__)
  19. #ifndef __GCCXML__
  20. #if defined(bitor)
  21. # pragma push_macro("bitor")
  22. # undef bitor
  23. # define bitor(x)
  24. #endif
  25. #endif
  26. #endif
  27. #define AUX778076_OP_NAME bitor_
  28. #define AUX778076_OP_PREFIX bitor
  29. #define AUX778076_OP_TOKEN |
  30. #include <boost/mpl/aux_/arithmetic_op.hpp>
  31. #if defined(_MSC_VER) && !defined(__clang__)
  32. #ifndef __GCCXML__
  33. #if defined(bitor)
  34. # pragma pop_macro("bitor")
  35. #endif
  36. #endif
  37. #endif
  38. #endif // BOOST_MPL_BITOR_HPP_INCLUDED