template_tpl.cpp 761 B

1234567891011121314151617181920212223242526
  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. template<class T, class U>
  7. struct t0;
  8. template<class T, int n>
  9. struct t1;
  10. template<template<class, class> class T, template<class, int> class U>
  11. struct t2;
  12. BOOST_TYPEOF_REGISTER_TEMPLATE(t0, 2)
  13. BOOST_TYPEOF_REGISTER_TEMPLATE(t1, (class)(int))
  14. BOOST_TYPEOF_REGISTER_TEMPLATE(t2,
  15. (BOOST_TYPEOF_TEMPLATE(2))
  16. (BOOST_TYPEOF_TEMPLATE((class)(int)))
  17. )
  18. BOOST_STATIC_ASSERT((boost::type_of::test<t2<t0, t1> >::value));