mirror of
https://github.com/boostorg/concept_check.git
synced 2025-07-31 13:07:33 +02:00
fixed a couple compiler errors
[SVN r8419]
This commit is contained in:
@ -23,7 +23,7 @@ class class_requires_test
|
||||
{
|
||||
BOOST_CLASS_REQUIRES(int, EqualityComparableConcept);
|
||||
typedef int* int_ptr; typedef const int* const_int_ptr;
|
||||
BOOST_CLASS_REQUIRES2(int_ptr, const_int_ptr, Comparable2Concept);
|
||||
BOOST_CLASS_REQUIRES2(int_ptr, const_int_ptr, EqualOpConcept);
|
||||
BOOST_CLASS_REQUIRES3(foo, bool, int, UnaryFunctionConcept);
|
||||
BOOST_CLASS_REQUIRES4(bar, bool, int, char, BinaryFunctionConcept);
|
||||
};
|
||||
|
@ -142,7 +142,7 @@ main()
|
||||
function_requires< InputIteratorConcept<Iter> >();
|
||||
}
|
||||
{
|
||||
typedef output_iterator_archetype Iter;
|
||||
typedef output_iterator_archetype<int> Iter;
|
||||
function_requires< OutputIteratorConcept<Iter, int> >();
|
||||
}
|
||||
{
|
||||
@ -173,13 +173,6 @@ main()
|
||||
//===========================================================================
|
||||
// Container Concepts
|
||||
|
||||
{
|
||||
|
||||
function_requires< ContainerConcept< > >();
|
||||
}
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -25,6 +25,9 @@
|
||||
#include <slist>
|
||||
#endif
|
||||
|
||||
// Define this macro if you want to hide the expected error, that is,
|
||||
// error in the various C++ standard library implementations.
|
||||
//
|
||||
//#define BOOST_HIDE_EXPECTED_ERRORS
|
||||
|
||||
int
|
||||
|
@ -25,7 +25,6 @@
|
||||
|
||||
*/
|
||||
|
||||
#define BOOST_HIDE_EXPECTED_ERRORS
|
||||
|
||||
// This is a special concept needed for std::swap_ranges.
|
||||
// It is mutually convertible, and also SGIAssignable
|
||||
@ -179,7 +178,7 @@ main()
|
||||
n = std::count(in, in, value);
|
||||
ignore_unused_variable_warning(n);
|
||||
}
|
||||
#if !defined(__KCC) && !defined(BOOST_HIDE_EXPECTED_ERRORS)
|
||||
#if !defined(__KCC)
|
||||
{
|
||||
typedef equal_op_first_archetype<> Left;
|
||||
typedef input_iterator_archetype<Left> InIter;
|
||||
@ -190,7 +189,7 @@ main()
|
||||
}
|
||||
{
|
||||
input_iterator_archetype< convertible_to_archetype<null_archetype<> > > in;
|
||||
unary_predicate_archetype<null_archetype<> > pred;
|
||||
unary_predicate_archetype<null_archetype<> > pred(dummy_cons);
|
||||
unsigned long n;
|
||||
std::count_if(in, in, pred, n);
|
||||
}
|
||||
|
Reference in New Issue
Block a user