diff --git a/test/Jamfile b/test/Jamfile index 1fc4e61..d01213c 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -2,4 +2,6 @@ SEARCH on testing.jam = $(BOOST_BUILD_PATH) ; include testing.jam ; run iterator_adaptor_cc.cpp ; run transform_iterator_test.cpp ; -run indirect_iterator_test.cpp ; \ No newline at end of file +run indirect_iterator_test.cpp ; +compile-fail interoperable_fail.cpp ; +compile-fail is_convertible_fail.cpp ; \ No newline at end of file diff --git a/test/interoperable_fail.cpp b/test/interoperable_fail.cpp new file mode 100644 index 0000000..f7920c4 --- /dev/null +++ b/test/interoperable_fail.cpp @@ -0,0 +1,16 @@ +#include +#include +#include +#include + +int main() +{ + { + typedef boost::reverse_iterator::iterator> rev_iter; + typedef boost::indirect_iterator::iterator> ind_iter; + + ind_iter() == rev_iter(); + } + + return boost::exit_success; +} diff --git a/test/is_convertible_fail.cpp b/test/is_convertible_fail.cpp new file mode 100644 index 0000000..933ff38 --- /dev/null +++ b/test/is_convertible_fail.cpp @@ -0,0 +1,15 @@ +#include +#include +#include + +int main() +{ + { + typedef boost::reverse_iterator rev_iter1; + typedef boost::reverse_iterator rev_iter2; + + BOOST_STATIC_ASSERT((boost::is_convertible::value)); + } + + return boost::exit_success; +}