Files
concept_check/class_concept_fail_expected.cpp
Dave Abrahams c19d9fb2bd Added warning suppression and changelog
[SVN r8668]
2001-01-21 05:33:10 +00:00

35 lines
778 B
C++

// (C) Copyright Jeremy Siek 2000. Permission to copy, use, modify,
// sell and distribute this software is granted provided this
// copyright notice appears in all copies. This software is provided
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
//
// 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 { };
using namespace boost;
class class_requires_test
{
BOOST_CLASS_REQUIRES(foo, EqualityComparableConcept);
};
int
main()
{
class_requires_test x;
(void)x; // suppress unused variable warning
return 0;
}