template_multiword.cpp 493 B

1234567891011121314
  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<unsigned long int n> struct t{};
  7. BOOST_TYPEOF_REGISTER_TEMPLATE(t,
  8. (BOOST_TYPEOF_INTEGRAL(unsigned long int))
  9. )
  10. BOOST_STATIC_ASSERT((boost::type_of::test<t<5> >::value));