test_has_type_ct_fail2.cpp 572 B

12345678910111213141516171819202122
  1. // (C) Copyright Edward Diener 2011
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #include "test_has_type.hpp"
  6. #include <boost/mpl/assert.hpp>
  7. #include <boost/mpl/placeholders.hpp>
  8. #include <boost/type_traits/is_same.hpp>
  9. using namespace boost::mpl::placeholders;
  10. int main()
  11. {
  12. // Wrong enclosing type
  13. BOOST_MPL_ASSERT((BOOST_TTI_HAS_TYPE_GEN(BType)<AnotherType,boost::is_same<short,_> >));
  14. return 0;
  15. }