bitand.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef BOOST_MPL_BITAND_HPP_INCLUDED
  2. #define BOOST_MPL_BITAND_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(bitand)'
  16. // has to be checked in a separate condition, otherwise GCC complains
  17. // about 'bitand' being an alternative token
  18. #if defined(_MSC_VER) && !defined(__clang__)
  19. #ifndef __GCCXML__
  20. #if defined(bitand)
  21. # pragma push_macro("bitand")
  22. # undef bitand
  23. # define bitand(x)
  24. #endif
  25. #endif
  26. #endif
  27. #define AUX778076_OP_NAME bitand_
  28. #define AUX778076_OP_PREFIX bitand
  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(bitand)
  34. # pragma pop_macro("bitand")
  35. #endif
  36. #endif
  37. #endif
  38. #endif // BOOST_MPL_BITAND_HPP_INCLUDED