common_type_fail.cpp 520 B

123456789101112131415161718192021222324252627
  1. // common_type_test.cpp ----------------------------------------------------//
  2. // Copyright 2010 Beman Dawes
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // See http://www.boost.org/LICENSE_1_0.txt
  5. #define _CRT_SECURE_NO_WARNINGS // disable VC++ foolishness
  6. #include "test.hpp"
  7. #ifndef TEST_STD
  8. #include <boost/type_traits/common_type.hpp>
  9. #else
  10. #include <type_traits>
  11. #endif
  12. struct C1 {
  13. //~ private:
  14. //~ C1();
  15. };
  16. struct C2 {};
  17. typedef tt::common_type<C1, C2>::type AC;