mirror of
https://github.com/boostorg/concept_check.git
synced 2026-01-26 08:42:18 +01:00
24 lines
601 B
C++
24 lines
601 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/pending/concept_checks.hpp>
|
|
|
|
/*
|
|
|
|
This file verifies that function_requires() of the Boost Concept
|
|
Checking Library catches errors when it is suppose to.
|
|
|
|
*/
|
|
|
|
struct foo { };
|
|
|
|
int
|
|
main()
|
|
{
|
|
boost::function_requires< boost::EqualityComparableConcept<foo> >();
|
|
return 0;
|
|
}
|