common_type_3_test.cpp 540 B

12345678910111213141516171819202122
  1. // Copyright Peter Dimov 2015
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.tt.org/LICENSE_1_0.txt)
  5. #ifdef TEST_STD
  6. # include <type_traits>
  7. #else
  8. # include <boost/type_traits/common_type.hpp>
  9. #endif
  10. #include "test.hpp"
  11. #include "check_type.hpp"
  12. #include <iostream>
  13. TT_TEST_BEGIN(common_type_3)
  14. {
  15. // just check whether the nullary specialization compiles
  16. tt::common_type<> tmp;
  17. (void)tmp;
  18. }
  19. TT_TEST_END