]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
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 | ||
8 | ||
9 | [section:bitwise Bitwise comparison] | |
10 | ||
11 | [caution this feature is not available for non C++11 compilers.] | |
12 | ||
13 | The manipulator [classref boost::test_tools::bitwise] can be provided to the __BOOST_TEST__ macro in order to have a bitwise comparison | |
14 | of the operands. In that case, the __UTF__ indicates the bit indices where the two operands do not match. | |
15 | ||
16 | [bt_example boost_test_bitwise..BOOST_TEST bitwise comparison..run-fail] | |
17 | ||
18 | [note the indices start at least significant bit.] | |
19 | ||
20 | ||
21 | [endsect] [/ bitwise comparison] |