Files
iterator/test/is_convertible_fail.cpp

21 lines
571 B
C++
Raw Normal View History

2004-08-10 14:41:52 +00:00
//
// Copyright (c) Thomas Witt 2002.
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
2003-07-07 14:26:16 +00:00
#include <boost/iterator/reverse_iterator.hpp>
#include <boost/cstdlib.hpp>
2024-06-09 15:20:41 +03:00
#include <type_traits>
2003-07-07 14:26:16 +00:00
int main()
{
typedef boost::reverse_iterator<int*> rev_iter1;
typedef boost::reverse_iterator<char*> rev_iter2;
2024-06-09 15:20:41 +03:00
return std::is_convertible<rev_iter1, rev_iter2>::value
2003-07-07 14:26:16 +00:00
? boost::exit_failure : boost::exit_success;
}