largest_int.cpp 790 B

12345678910111213141516171819202122232425
  1. // Copyright Aleksey Gurtovoy 2000-2004
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // See http://www.boost.org/libs/mpl for documentation.
  8. // $Id$
  9. // $Date$
  10. // $Revision$
  11. #include <boost/mpl/aux_/largest_int.hpp>
  12. #include <boost/mpl/aux_/test.hpp>
  13. MPL_TEST_CASE()
  14. {
  15. MPL_ASSERT(( is_same< mpl::aux::largest_int<bool,bool>::type, bool > ));
  16. MPL_ASSERT(( is_same< mpl::aux::largest_int<bool,char>::type, char > ));
  17. MPL_ASSERT(( is_same< mpl::aux::largest_int<char,bool>::type, char > ));
  18. MPL_ASSERT(( is_same< mpl::aux::largest_int<int,unsigned>::type, unsigned > ));
  19. MPL_ASSERT(( is_same< mpl::aux::largest_int<unsigned,long>::type, long > ));
  20. }