template_type.cpp 482 B

1234567891011121314151617
  1. // Copyright (C) 2006 Arkadiy Vertleyb
  2. // Use, modification and distribution is subject to the Boost Software
  3. // License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt)
  4. #include "test.hpp"
  5. #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
  6. struct P1;
  7. struct P2;
  8. template<class P1, class P2> struct Tpl;
  9. BOOST_TYPEOF_REGISTER_TYPE(P1)
  10. BOOST_TYPEOF_REGISTER_TYPE(P2)
  11. BOOST_TYPEOF_REGISTER_TEMPLATE(Tpl, 2)
  12. BOOST_STATIC_ASSERT((boost::type_of::test<Tpl<P1, P2> >::value));