Interoperability tests added.

[SVN r704]
This commit is contained in:
Thomas Witt
2002-11-22 08:06:26 +00:00
parent 8f98c66857
commit b263f69da1
3 changed files with 41 additions and 10 deletions

View File

@@ -5,6 +5,8 @@
// to its suitability for any purpose.
// Revision History
// 22 Nov 2002 Thomas Witt
// Added interoperability check.
// 28 Oct 2002 Jeremy Siek
// Updated for new iterator adaptors.
// 08 Mar 2001 Jeremy Siek
@@ -15,8 +17,10 @@
#include <iostream>
#include <algorithm>
#include <boost/iterator/iterator_adaptors.hpp>
#include <boost/iterator/iterator_concepts.hpp>
#include <boost/iterator/new_iterator_tests.hpp>
#include <boost/pending/iterator_tests.hpp>
#include <boost/concept_check.hpp>
struct mult_functor {
typedef int result_type;
@@ -36,6 +40,14 @@ main()
{
const int N = 10;
// Concept checks
{
typedef boost::transform_iterator<mult_functor, int*> iter_t;
typedef boost::transform_iterator<mult_functor, int const*> c_iter_t;
boost::function_requires< boost_concepts::InteroperableConcept<iter_t, c_iter_t> >();
}
// Test transform_iterator
{
int x[N], y[N];