• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 //
6 // Change Log:
7 // 20 Jan 2001 - Added warning suppression (David Abrahams)
8 
9 #include <boost/concept_check.hpp>
10 
11 /*
12 
13   This file verifies that class_requires of the Boost Concept Checking
14   Library catches errors when it is supposed to.
15 
16 */
17 
18 struct foo { };
19 
20 template <class T>
21 class class_requires_test
22 {
23     BOOST_CONCEPT_ASSERT((boost::EqualityComparable<foo>));
24 };
25 
26 int
main()27 main()
28 {
29     class_requires_test<int> x;
30     (void)x; // suppress unused variable warning
31     return 0;
32 }
33