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 6 #ifdef NDEBUG 7 # undef NDEBUG 8 #endif 9 10 #include <boost/concept_check.hpp> 11 12 /* 13 14 This file verifies that function_requires() of the Boost Concept 15 Checking Library catches errors when it is suppose to. 16 17 */ 18 19 struct foo { }; 20 21 int main()22main() 23 { 24 boost::function_requires< boost::EqualityComparable<foo> >(); 25 return 0; 26 } 27