bitand.hpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_EXTENSIONS)
  19. #if defined(bitand)
  20. # pragma push_macro("bitand")
  21. # undef bitand
  22. # define bitand(x)
  23. #endif
  24. #endif
  25. #define AUX778076_OP_NAME bitand_
  26. #define AUX778076_OP_PREFIX bitand
  27. #define AUX778076_OP_TOKEN &
  28. #include <boost/mpl/aux_/arithmetic_op.hpp>
  29. #if defined(_MSC_EXTENSIONS)
  30. #if defined(bitand)
  31. # pragma pop_macro("bitand")
  32. #endif
  33. #endif
  34. #endif // BOOST_MPL_BITAND_HPP_INCLUDED