1 // Copyright John Maddock 2009. 2 // Distributed under the Boost 3 // Software License, Version 1.0. (See accompanying file 4 // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) 5 6 #include <boost/integer/integer_mask.hpp> // must be the only #include! 7 main()8int main() 9 { 10 boost::high_bit_mask_t<20>::least l = boost::high_bit_mask_t<20>::high_bit; 11 boost::high_bit_mask_t<12>::fast f = boost::high_bit_mask_t<12>::high_bit_fast; 12 l += f + boost::high_bit_mask_t<12>::bit_position; 13 (void)l; 14 boost::low_bits_mask_t<20>::least l2 = boost::low_bits_mask_t<20>::sig_bits; 15 boost::low_bits_mask_t<12>::fast f2 = boost::low_bits_mask_t<12>::sig_bits_fast; 16 l2 += f2 + boost::low_bits_mask_t<12>::bit_count; 17 (void)l2; 18 } 19