Files
concept_check/class_concept_fail_expected.cpp
2004-07-26 00:32:12 +00:00

32 lines
644 B
C++

// (C) Copyright Jeremy Siek 2000.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Change Log:
// 20 Jan 2001 - Added warning suppression (David Abrahams)
#include <boost/concept_check.hpp>
/*
This file verifies that class_requires of the Boost Concept Checking
Library catches errors when it is suppose to.
*/
struct foo { };
class class_requires_test
{
BOOST_CLASS_REQUIRE(foo, boost, EqualityComparableConcept);
};
int
main()
{
class_requires_test x;
(void)x; // suppress unused variable warning
return 0;
}