]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/concept_check/test/function_requires_fail.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / concept_check / test / function_requires_fail.cpp
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
22 main()
23 {
24 boost::function_requires< boost::EqualityComparable<foo> >();
25 return 0;
26 }