mirror of
https://github.com/boostorg/iterator.git
synced 2026-01-24 18:02:21 +00:00
immutability of the pointed-to type via const qualification. The pointee of a proxy-based iterator will be const qualified unless a mutable reference to the value_type can be bound to the returned proxy. Added a test for pointee Fixed iterator_facade so operator[] result type computation didn't cause a problem with abstract types. Updated iterator_facade operator[] docs for accuracy. Allowed Borland to simply fail the indirect_iterator_member_types test because of its lame const-dropping, instead of trying to work around it. [SVN r21579]
59 lines
2.0 KiB
Plaintext
59 lines
2.0 KiB
Plaintext
# Copyright David Abrahams 2003. 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.
|
|
|
|
subproject libs/iterator/test ;
|
|
|
|
import testing ;
|
|
|
|
test-suite iterator
|
|
:
|
|
# These first two tests will run last, and are expected to fail
|
|
# for many less-capable compilers.
|
|
|
|
[ compile-fail interoperable_fail.cpp ]
|
|
# test uses expected success, so that we catch unrelated
|
|
# compilation problems.
|
|
[ run is_convertible_fail.cpp ]
|
|
|
|
[ run zip_iterator_test.cpp
|
|
: : :
|
|
|
|
# stlport's debug mode generates long symbols which overwhelm
|
|
# vc6
|
|
<msvc-stlport><*><runtime-build>release
|
|
]
|
|
|
|
# These tests should work for just about everything.
|
|
[ compile is_lvalue_iterator.cpp ]
|
|
[ compile is_readable_iterator.cpp ]
|
|
[ compile pointee.cpp ]
|
|
|
|
[ run unit_tests.cpp ]
|
|
[ run concept_tests.cpp ]
|
|
[ run iterator_adaptor_cc.cpp ]
|
|
[ run iterator_adaptor_test.cpp ]
|
|
[ compile iterator_archetype_cc.cpp ]
|
|
[ run transform_iterator_test.cpp ]
|
|
[ run indirect_iterator_test.cpp ]
|
|
[ compile indirect_iterator_member_types.cpp ]
|
|
[ run filter_iterator_test.cpp ]
|
|
[ run reverse_iterator_test.cpp ]
|
|
[ run counting_iterator_test.cpp ]
|
|
[ run permutation_iterator_test.cpp : : : # <stlport-iostream>on
|
|
]
|
|
|
|
[ run ../../utility/iterator_adaptor_examples.cpp ]
|
|
[ run ../../utility/counting_iterator_example.cpp ]
|
|
[ run ../../utility/filter_iterator_example.cpp ]
|
|
[ run ../../utility/fun_out_iter_example.cpp ]
|
|
[ run ../../utility/indirect_iterator_example.cpp ]
|
|
[ run ../../utility/projection_iterator_example.cpp ]
|
|
[ run ../../utility/reverse_iterator_example.cpp ]
|
|
[ run ../../utility/transform_iterator_example.cpp ]
|
|
[ run ../../utility/iterator_traits_test.cpp ]
|
|
|
|
;
|