interoperable_fail.cpp 598 B

123456789101112131415161718192021
  1. // Copyright Thomas Witt 2003.
  2. // Distributed under the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #include <boost/iterator/indirect_iterator.hpp>
  6. #include <boost/iterator/reverse_iterator.hpp>
  7. #include <boost/concept_check.hpp>
  8. #include <boost/cstdlib.hpp>
  9. #include <list>
  10. int main()
  11. {
  12. {
  13. typedef boost::reverse_iterator<std::list<int*>::iterator> rev_iter;
  14. typedef boost::indirect_iterator<std::list<int*>::iterator> ind_iter;
  15. ind_iter() == rev_iter();
  16. }
  17. return boost::exit_success;
  18. }