fixed a couple compiler errors

[SVN r8419]
This commit is contained in:
Jeremy Siek
2000-12-09 15:59:54 +00:00
parent 1435184186
commit a4c80b37e3
4 changed files with 7 additions and 12 deletions

View File

@ -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);
};

View File

@ -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;
}

View File

@ -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

View File

@ -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);
}