Fixes for concept checking; use destructors for checking classes, misc cleanup.

[SVN r33862]
This commit is contained in:
Dave Abrahams committed 2006-04-29 20:27:14 +00:00
1 parent d4ecb93adb
commit 24326c9df5
19 files changed
+864 -331

No files matched your search

+8 -8
View File
@@ -18,17 +18,17 @@ struct bar { bool operator()(int, char) { return true; } };
class class_requires_test
{
BOOST_CLASS_REQUIRE(int, boost, EqualityComparableConcept);
typedef int* int_ptr; typedef const int* const_int_ptr;
BOOST_CLASS_REQUIRE2(int_ptr, const_int_ptr, boost, EqualOpConcept);
BOOST_CLASS_REQUIRE3(foo, bool, int, boost, UnaryFunctionConcept);
BOOST_CLASS_REQUIRE4(bar, bool, int, char, boost, BinaryFunctionConcept);
BOOST_CONCEPT_ASSERT((boost::EqualityComparableConcept<int>));
typedef int* int_ptr; typedef const int* const_int_ptr;
BOOST_CONCEPT_ASSERT((boost::EqualOpConcept<int_ptr,const_int_ptr>));
BOOST_CONCEPT_ASSERT((boost::UnaryFunctionConcept<foo,bool,int>));
// BOOST_CONCEPT_ASSERT((boost::BinaryFunctionConcept<bar,bool,int,char>));
};
int
main()
{
class_requires_test x;
boost::ignore_unused_variable_warning(x);
return 0;
class_requires_test x;
boost::ignore_unused_variable_warning(x);
return 0;
}