1 // 2 // Copyright (c) Thomas Witt 2002. 3 // 4 // Use, modification and distribution is subject to the 5 // Boost Software License, Version 1.0. 6 // (See accompanying file LICENSE_1_0.txt or copy at 7 // http://www.boost.org/LICENSE_1_0.txt) 8 // 9 #include <boost/iterator/reverse_iterator.hpp> 10 #include <boost/cstdlib.hpp> 11 main()12int main() 13 { 14 typedef boost::reverse_iterator<int*> rev_iter1; 15 typedef boost::reverse_iterator<char*> rev_iter2; 16 17 return boost::is_convertible<rev_iter1, rev_iter2>::value 18 ? boost::exit_failure : boost::exit_success; 19 } 20