mirror of
https://github.com/boostorg/concept_check.git
synced 2026-01-26 16:52:19 +01:00
31 lines
653 B
C++
31 lines
653 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.
|
|
|
|
#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;
|
|
return 0;
|
|
}
|