function_requires_fail.cpp 511 B

1234567891011121314151617181920212223242526
  1. // (C) Copyright Jeremy Siek 2000.
  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 function_requires() of the Boost Concept
  11. Checking Library catches errors when it is suppose to.
  12. */
  13. struct foo { };
  14. int
  15. main()
  16. {
  17. boost::function_requires< boost::EqualityComparable<foo> >();
  18. return 0;
  19. }