test_has_type_ct_fail4.cpp 553 B

123456789101112131415161718192021
  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/placeholders.hpp>
  7. #include <boost/type_traits/is_same.hpp>
  8. using namespace boost::mpl::placeholders;
  9. int main()
  10. {
  11. // Typedef type does not exist ( BType is a nested type )
  12. BOOST_TTI_HAS_TYPE_GEN(BType)<AType,boost::is_same<BType,_> > aVar;
  13. return 0;
  14. }