boost_test_bitwise_comparison.qbk 717 B

123456789101112131415161718192021
  1. [/
  2. / Copyright (c) 2015 Boost development team
  3. /
  4. / Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. / file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. /]
  7. [section:bitwise Bitwise comparison]
  8. [caution this feature is not available for non C++11 compilers.]
  9. The manipulator [classref boost::test_tools::bitwise] can be provided to the __BOOST_TEST__ macro in order to have a bitwise comparison
  10. of the operands. In that case, the __UTF__ indicates the bit indices where the two operands do not match.
  11. [bt_example boost_test_bitwise..BOOST_TEST bitwise comparison..run-fail]
  12. [note the indices start at least significant bit.]
  13. [endsect] [/ bitwise comparison]