PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/Src/Dependencies/Boost/libs/iterator/test/interoperable_fail.cpp

http://hadesmem.googlecode.com/
C++ | 21 lines | 14 code | 3 blank | 4 comment | 1 complexity | 6a01a4f2f33457558c3555c7792b93f4 MD5 | raw file
 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
11int main()
12{
13  {
14    typedef boost::reverse_iterator<std::list<int*>::iterator>   rev_iter;
15    typedef boost::indirect_iterator<std::list<int*>::iterator>  ind_iter;
16
17    ind_iter() == rev_iter();
18  }
19
20  return boost::exit_success;
21}