integer_fwd_include_test.cpp 1.0 KB

12345678910111213141516171819202122
  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 http://www.boost.org/LICENSE_1_0.txt)
  5. #include <boost/integer_fwd.hpp> // must be the only #include!
  6. // just declare some functions that use the incomplete types in the header:
  7. void f1(const boost::integer_traits<char>*);
  8. void f2(const boost::int_fast_t<char>*);
  9. void f3(const boost::int_t<12>*);
  10. void f4(const boost::uint_t<31>*);
  11. void f5(const boost::int_max_value_t<100>*);
  12. void f6(const boost::int_min_value_t<-100>*);
  13. void f7(const boost::uint_value_t<100>*);
  14. void f8(const boost::high_bit_mask_t<10>*);
  15. void f9(const boost::low_bits_mask_t<10>*);
  16. void f10(boost::static_log2_argument_type, boost::static_log2_result_type, boost::static_log2<10>*);
  17. void f11(boost::static_min_max_signed_type, boost::static_min_max_unsigned_type);
  18. void f12(boost::static_signed_min<1, 2>*, boost::static_signed_max<1,2>*);
  19. void f13(boost::static_unsigned_min<1,2>*, boost::static_unsigned_min<1,2>*);