• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "old_concepts.hpp"
11 
12 // This file verifies that concepts written the old way still catch
13 // errors in function context.  This is not expected to work on
14 // compilers without SFINAE support.
15 
16 struct foo { };
17 
18 int
main()19 main()
20 {
21     boost::function_requires< old::EqualityComparableConcept<foo> >();
22     return 0;
23 }
24