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 "old_concepts.hpp"
10 
11 // This file verifies that concepts written the old way still catch
12 // errors in class context.  This is not expected to work on compilers
13 // without SFINAE support.
14 
15 struct foo { };
16 
17 class class_requires_test
18 {
19   BOOST_CLASS_REQUIRE(foo, old, EqualityComparableConcept);
20 };
21 
22 int
main()23 main()
24 {
25   class_requires_test x;
26   (void)x; // suppress unused variable warning
27   return 0;
28 }
29