test_vm_has_template_cp_fail2.cpp 521 B

123456789101112131415161718192021222324252627
  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_vm_has_template_cp.hpp"
  6. #include <boost/mpl/assert.hpp>
  7. int main()
  8. {
  9. #if BOOST_PP_VARIADICS
  10. // Wrong enclosing type
  11. BOOST_MPL_ASSERT((HaveCL<AnotherType>));
  12. #else
  13. BOOST_MPL_ASSERT((boost::mpl::false_));
  14. #endif // BOOST_PP_VARIADICS
  15. return 0;
  16. }