concept_check_fail_expected.cpp 487 B

1234567891011121314151617181920212223242526
  1. // (C) Copyright Jeremy Siek, David Abrahams 2000-2006.
  2. // Distributed under the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifdef NDEBUG
  6. # undef NDEBUG
  7. #endif
  8. #include <boost/concept_check.hpp>
  9. /*
  10. This file verifies that BOOST_CONCEPT_ASSERT catches errors in
  11. function context.
  12. */
  13. struct foo { };
  14. int
  15. main()
  16. {
  17. BOOST_CONCEPT_ASSERT((boost::EqualityComparable<foo>));
  18. return 0;
  19. }